net/arp-sk: Fix build with libnet 1.3

This commit is contained in:
Po-Chuan Hsieh 2023-10-16 23:21:40 +08:00
parent f8901e734c
commit a19e26ecdd
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View file

@ -6,8 +6,8 @@
-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
+echo "$as_me:$LINENO: checking for version 1.3.x of libnet" >&5
+echo $ECHO_N "checking for version 1.3.x of libnet... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
@ -16,7 +16,7 @@
int main()
{
- return (strncmp(LIBNET_VERSION, "1.1.", 4));
+ return (strncmp(LIBNET_VERSION, "1.2", 3));
+ return (strncmp(LIBNET_VERSION, "1.3", 3));
}
_ACEOF