summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:57:26 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:57:26 (GMT)
commit9e43730ca3ded5c2e82d34f7e49704ad18dcd3a5 (patch)
tree4f30c0ac11a1fb675ddbb8387060e1a4207dee4d /Modules/socketmodule.c
parent79acb9edfa893b5072350c82fd0645d023b13b03 (diff)
downloadcpython-9e43730ca3ded5c2e82d34f7e49704ad18dcd3a5.zip
cpython-9e43730ca3ded5c2e82d34f7e49704ad18dcd3a5.tar.gz
cpython-9e43730ca3ded5c2e82d34f7e49704ad18dcd3a5.tar.bz2
Don't include <ioctl.h> unless on __VMS.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 71685c5..d4a8b1d 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