summaryrefslogtreecommitdiffstats
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)
commitd7a4f9ef8d62f709d21cf66ece09456714f7c6f1 (patch)
tree131ce7f946b797a44bd3325bf3a22dd90a3d0573
parentea4d2875ac5dc83864a8313d6252e56295598070 (diff)
downloadcpython-d7a4f9ef8d62f709d21cf66ece09456714f7c6f1.zip
cpython-d7a4f9ef8d62f709d21cf66ece09456714f7c6f1.tar.gz
cpython-d7a4f9ef8d62f709d21cf66ece09456714f7c6f1.tar.bz2
include fcntl.h on all *nix platforms (closes #24217)
Patch by Jeffrey Armstrong.
-rw-r--r--Modules/mmapmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 0784350..8fdf7f7 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -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