diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/winpcap/bison-flex.patch | |
Diffstat (limited to 'vcpkg/ports/winpcap/bison-flex.patch')
| -rw-r--r-- | vcpkg/ports/winpcap/bison-flex.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/winpcap/bison-flex.patch b/vcpkg/ports/winpcap/bison-flex.patch new file mode 100644 index 0000000..201de00 --- /dev/null +++ b/vcpkg/ports/winpcap/bison-flex.patch @@ -0,0 +1,22 @@ +diff --git a/wpcap/PRJ/build_scanner_parser.bat b/wpcap/PRJ/build_scanner_parser.bat +index 31786d596..54cba739d 100644 +--- a/wpcap/PRJ/build_scanner_parser.bat ++++ b/wpcap/PRJ/build_scanner_parser.bat +@@ -4,7 +4,7 @@ echo Building the libpcap parser and scanner... + del /Q /F ..\libpcap\grammar.c > nul 2> nul
+ del /Q /F ..\libpcap\tokdefs.h > nul 2> nul
+
+-bison -y -p pcap_ -d ../libpcap/GRAMMAR.Y > nul
++win_bison -y -p pcap_ -d ../libpcap/GRAMMAR.Y > nul
+ if not %ERRORLEVEL% == 0 (
+ echo failure in generating the grammar.
+ goto end
+@@ -14,7 +14,7 @@ move y.tab.c ..\libpcap\grammar.c + move y.tab.h ..\libpcap\tokdefs.h
+
+ del /Q /F ..\libpcap\scanner.c >/nul 2>/nul
+-flex -Ppcap_ -t ../libpcap/scanner.l > ../libpcap/scanner.c
++win_flex -Ppcap_ -t ../libpcap/scanner.l > ../libpcap/scanner.c
+
+ if not %ERRORLEVEL% == 0 (
+ echo failure in generating the scanner.
|