Skip to content

Commit

Permalink
Apply patch to fix libmaxminddb on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Dec 29, 2023
1 parent 57523a6 commit d294d67
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ jobs:
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
curl -L https://github.com/maxmind/libmaxminddb/releases/download/1.8.0/libmaxminddb-1.8.0.tar.gz | tar xzvf -
mkdir libmaxminddb-1.8.0\build
cd libmaxminddb-1.8.0\build
cd libmaxminddb-1.8.0
curl -O https://github.com/maxmind/libmaxminddb/commit/c07677078ba0e78f6a741465546c8c2019ee1c35.diff
unix2dos c07677078ba0e78f6a741465546c8c2019ee1c35.diff
patch -p1 < c07677078ba0e78f6a741465546c8c2019ee1c35.diff
mkdir build
cd build
cmake ..
cmake --build .
cmake --build . --target install
rename "C:\Program Files (x86)\maxminddb\include\maxminddb.h" maxminddb.h.bak
sed "/typedef ADDRESS_FAMILY sa_family_t/d" "C:\Program Files (x86)\maxminddb\include\maxminddb.h.bak" > "C:\Program Files (x86)\maxminddb\include\maxminddb.h"
shell: cmd

- name: Build Zeek (Windows)
Expand Down

0 comments on commit d294d67

Please sign in to comment.