summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrBrd <chris@binaryspanner.com>2018-07-28 02:24:33 +0100
committerchrBrd <chris@binaryspanner.com>2018-07-28 02:58:22 +0100
commit7bca50a11dbfa5cd325540c7d99a83a3ed1aafd9 (patch)
tree113d77082f95d59ccec8f9ec553f4f5e17eabbbf
parente9d3221ecd0b6e0782cd682fad9deba665a14ea6 (diff)
downloadxattr-7bca50a11dbfa5cd325540c7d99a83a3ed1aafd9.tar.gz
Always include `sys/types.h` when building lib.
-rw-r--r--xattr/lib_build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xattr/lib_build.py b/xattr/lib_build.py
index a687cea..7152721 100644
--- a/xattr/lib_build.py
+++ b/xattr/lib_build.py
@@ -27,10 +27,10 @@ ssize_t xattr_flistxattr(int, char *, size_t, int);
C_SRC = """
#include "Python.h"
+#include <sys/types.h>
#ifdef __FreeBSD__
#include <sys/extattr.h>
#elif defined(__SUN__) || defined(__sun__) || defined(__sun)
-#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>