summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:14:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-03 09:14:54 (GMT)
commitc16f3bd8a391a68427a95e15a3c1894198ff0377 (patch)
tree113dca8c40c8a42cb665e6bcc4af44f9f68bd230 /Modules/socketmodule.h
parente59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 (diff)
downloadcpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.zip
cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.gz
cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.bz2
Patch #708495: Port more stuff to OpenVMS.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 936acac..167d507 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -2,7 +2,11 @@
/* Includes needed for the sockaddr_* symbols below */
#ifndef MS_WINDOWS
-# include <sys/socket.h>
+#ifdef __VMS
+# include <socket.h>
+# else
+# include <sys/socket.h>
+# endif
# include <netinet/in.h>
# if !(defined(__BEOS__) || defined(__CYGWIN__) || (defined(PYOS_OS2) && defined(PYCC_VACPP)))
# include <netinet/tcp.h>