summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-08-02 19:15:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-08-02 19:15:30 (GMT)
commitf6b5cad3c37f5f8d2db5ded60c85b2beab360181 (patch)
tree7e7489c0844df5e9da37a97ae52548ff3ac45d6b /Modules
parent6b3f29ca8f97ac952d61c34285ff716eb2f37471 (diff)
downloadcpython-f6b5cad3c37f5f8d2db5ded60c85b2beab360181.zip
cpython-f6b5cad3c37f5f8d2db5ded60c85b2beab360181.tar.gz
cpython-f6b5cad3c37f5f8d2db5ded60c85b2beab360181.tar.bz2
include fcntl.h on all *nix platforms (closes #24217)
Patch by Jeffrey Armstrong.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 1371424..a0cceeb 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -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