summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2011-03-18 06:56:53 +0200
committerRoss Lagerwall <rosslagerwall@gmail.com>2011-03-18 06:56:53 +0200
commit4d076da4dee054c83cfd851a2f49a1bb40eaf638 (patch)
tree4277765722501803da67f3593b9183950a80a5f9
parent8d2813442e75cf0f5b8e19bed1f7d6628a9bc288 (diff)
downloadcpython-git-4d076da4dee054c83cfd851a2f49a1bb40eaf638.tar.gz
Issue #11592: Fix compilation warnings in os module.
-rw-r--r--Modules/posixmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 0de6fdfe88..f873a7a774 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -59,6 +59,10 @@ corresponding Unix manual entries for more information on calls.");
#include "osdefs.h"
#endif
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
+
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
@@ -103,10 +107,6 @@ corresponding Unix manual entries for more information on calls.");
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
-
-#ifdef HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
#endif
/* Various compilers have only certain posix functions */