]> granicus.if.org Git - python/commitdiff
Don't include <ioctl.h> unless on __VMS.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 6 Dec 2002 12:57:26 +0000 (12:57 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 6 Dec 2002 12:57:26 +0000 (12:57 +0000)
Modules/socketmodule.c

index 71685c5144a01480055d054648c87a44ae08bc84..d4a8b1d45b71053b785165678505d1f58406d0a8 100644 (file)
@@ -148,7 +148,8 @@ shutdown(how) -- shut down traffic in one or both directions\n\
 # include <ctype.h>
 #endif
 
-#if defined(__VMS) && ! defined(_SOCKADDR_LEN)
+#if defined(__VMS)
+#if ! defined(_SOCKADDR_LEN)
 #   ifdef getaddrinfo
 #      undef getaddrinfo
 #   endif
@@ -156,6 +157,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
 #else
 #  include <ioctl.h>
 #endif
+#endif
 
 #if defined(PYOS_OS2)
 # define  INCL_DOS