From: Martin v. Löwis <martin@v.loewis.de>
Date: Fri, 6 Dec 2002 12:57:26 +0000 (+0000)
Subject: Don't include <ioctl.h> unless on __VMS.
X-Git-Tag: v2.3c1~3109
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e43730ca3ded5c2e82d34f7e49704ad18dcd3a5;p=python

Don't include <ioctl.h> unless on __VMS.
---

diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 71685c5144..d4a8b1d45b 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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