]> 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 0784350a2369295ac657f31c3730494c926f6d7b..8fdf7f75e1ab8bb9f85e2697fcac6418a1306264 100644 (file)
@@ -23,9 +23,9 @@
 
 #ifndef MS_WINDOWS
 #define UNIX
-# ifdef __APPLE__
+# ifdef HAVE_FCNTL_H
 #  include <fcntl.h>
-# endif
+# endif /* HAVE_FCNTL_H */
 #endif
 
 #ifdef MS_WINDOWS