aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-07-30 05:59:22 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-07-30 06:00:59 +0000
commit22402cde186c6946c3d2e3b861894987f43401f3 (patch)
tree07bf6fcb56de93a1c17c99b1a289ee7b1d4ef559 /net
parentf15af7bf1b774d6a765b1ceaac0fb2167f70c703 (diff)
downloadports-22402cde186c6946c3d2e3b861894987f43401f3.tar.gz
ports-22402cde186c6946c3d2e3b861894987f43401f3.zip
net/arp-sk: Fix build with libnet 1.2+
Diffstat (limited to 'net')
-rw-r--r--net/arp-sk/files/patch-configure22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/arp-sk/files/patch-configure b/net/arp-sk/files/patch-configure
new file mode 100644
index 000000000000..28bcdf9e3360
--- /dev/null
+++ b/net/arp-sk/files/patch-configure
@@ -0,0 +1,22 @@
+--- configure.orig 2004-12-07 15:26:51 UTC
++++ configure
+@@ -2932,8 +2932,8 @@ echo "${ECHO_T}yes" >&6
+
+ fi;
+
+-echo "$as_me:$LINENO: checking for version 1.1.x of libnet" >&5
+-echo $ECHO_N "checking for version 1.1.x of libnet... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for version 1.2.x of libnet" >&5
++echo $ECHO_N "checking for version 1.2.x of libnet... $ECHO_C" >&6
+
+ if test "$cross_compiling" = yes; then
+ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+@@ -2953,7 +2953,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <string.h>
+ int main()
+ {
+- return (strncmp(LIBNET_VERSION, "1.1.", 4));
++ return (strncmp(LIBNET_VERSION, "1.2", 3));
+ }
+
+ _ACEOF