libnfc: moved to github
[openwrt.org/packages.git] / net / 100-INADDR_NONE.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- a/configure.in
+++ b/configure.in
@@ -283,21 +283,22 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,i
 AC_CHECK_TYPES([boolean])
 
 # In case INADDR_NONE is not defined (like on Solaris)
-have_inaddr_none="no"
-AC_MSG_CHECKING([for INADDR_NONE])
-AC_RUN_IFELSE(
-[AC_LANG_PROGRAM(
-[[
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-]],
-[[
-       if (inet_addr("10,5,2") == INADDR_NONE);
-    return 0;
-]])],
-[have_inaddr_none="yes"],
-[have_inaddr_none="no"])
+have_inaddr_none="yes"
+#AC_MSG_CHECKING([for INADDR_NONE])
+#AC_RUN_IFELSE(
+#[AC_LANG_PROGRAM(
+#[[
+##include <sys/types.h>
+##include <netinet/in.h>
+##include <arpa/inet.h>
+#]],
+#[[
+#      if (inet_addr("10,5,2") == INADDR_NONE);
+#    return 0;
+#]])],
+#[have_inaddr_none="yes"],
+#[have_inaddr_none="yes"])
+
 AC_MSG_RESULT($have_inaddr_none)
 if test "x$have_inaddr_none" = "xno"; then
        AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
 
comments