Ticket #18 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

INADDR_NONE is available on windows

Reported by: polypaudio@lazymalevolence.com Assigned to: ossman
Priority: normal Milestone: 0.9.2
Component: build-system Severity: normal
Keywords: Cc:

Description

both winsock.h and winsock2.h also offer INADDR_NONE, at least using MinGW's w32api headers.

Index: configure.ac
===================================================================
--- configure.ac        (revision 999)
+++ configure.ac        (working copy)
@@ -205,7 +205,8 @@

 # Solaris lacks this
 AC_CHECK_DEFINE([INADDR_NONE], [netinet/in.h], [],
-    [AC_DEFINE([INADDR_NONE],  [0xffffffff], [Define INADDR_NONE if not found in <netinet/in.h>])])
+    [AC_CHECK_DEFINE([INADDR_NONE], [winsock2.h], [],
+        [AC_DEFINE([INADDR_NONE],  [0xffffffff], [Define INADDR_NONE if not found in <netinet/in.h>])])])

 #### Check for libs ####
 

Change History

06/02/06 17:26:21 changed by lennart

  • milestone set to 0.9.2.

06/02/06 17:44:46 changed by lennart

  • owner changed from somebody to ossman.
  • component changed from component1 to build-system.

06/12/06 14:53:41 changed by ossman

  • status changed from new to closed.
  • resolution set to fixed.

closed by r1010