aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcrafter/fix-build-error.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcrafter/fix-build-error.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libcrafter/fix-build-error.patch')
-rw-r--r--vcpkg/ports/libcrafter/fix-build-error.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/libcrafter/fix-build-error.patch b/vcpkg/ports/libcrafter/fix-build-error.patch
new file mode 100644
index 0000000..cc97b4a
--- /dev/null
+++ b/vcpkg/ports/libcrafter/fix-build-error.patch
@@ -0,0 +1,20 @@
+diff --git a/libcrafter/configure.ac b/libcrafter/configure.ac
+index 860d98b..b04ccce 100644
+--- a/libcrafter/configure.ac
++++ b/libcrafter/configure.ac
+@@ -35,14 +35,13 @@ AC_ARG_WITH(libpcap,
+ PCAPINC="-I$withval -I$withval/bpf"
+ PCAPLIB="-L$withval -lpcap"
+ elif test -f $withval/include/pcap.h -a \
+- -f $withval/include/net/bpf.h -a \
+ -f $withval/lib/libpcap.a; then
+ owd=`pwd`
+ if cd $withval; then withval=`pwd`; cd $owd; fi
+ PCAPINC="-I$withval/include"
+ PCAPLIB="-L$withval/lib -lpcap"
+ else
+- AC_ERROR(pcap.h, net/bpf.h, or libpcap.a not found in $withval)
++ AC_ERROR(pcap.h, or libpcap.a not found in $withval)
+ fi
+ ;;
+ esac ],