summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2018-07-30 15:21:19 -0700
committerGitHub <noreply@github.com>2018-07-30 15:21:19 -0700
commit9d6681ce58d54643420e2d28cb4bf397fb7d090e (patch)
tree112329bcbecd36667efcce954b117c7620e6e17e
parentf56049b0d9e0ab93adee0e31f787b5b592dc0911 (diff)
parent7bca50a11dbfa5cd325540c7d99a83a3ed1aafd9 (diff)
downloadxattr-9d6681ce58d54643420e2d28cb4bf397fb7d090e.tar.gz
Merge pull request #73 from chrBrd/fix-c-types
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>