packages/net/snort/patches/100-INADDR_NONE.patch

41 lines
939 B
Diff
Raw Normal View History

--- 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])