]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
include fcntl.h on all *nix platforms (closes #24217)
authorBenjamin Peterson <benjamin@python.org>
Sun, 2 Aug 2015 19:15:30 +0000 (12:15 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 2 Aug 2015 19:15:30 +0000 (12:15 -0700)
Patch by Jeffrey Armstrong.

Modules/mmapmodule.c

index 137142420f4febb430cdced19554cabeba7cd45d..a0cceebf556b32481098616025b2e9386465d98e 100644 (file)
@@ -24,9 +24,9 @@
 
 #ifndef MS_WINDOWS
 #define UNIX
-# ifdef __APPLE__
+# ifdef HAVE_FCNTL_H
 #  include <fcntl.h>
-# endif
+# endif /* HAVE_FCNTL_H */
 #endif
 
 #ifdef MS_WINDOWS