From: Benjamin Peterson Date: Sun, 2 Aug 2015 19:15:30 +0000 (-0700) Subject: include fcntl.h on all *nix platforms (closes #24217) X-Git-Tag: v3.5.0rc1~50^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6b5cad3c37f5f8d2db5ded60c85b2beab360181;p=thirdparty%2FPython%2Fcpython.git include fcntl.h on all *nix platforms (closes #24217) Patch by Jeffrey Armstrong. --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 137142420f4f..a0cceebf556b 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 -# endif +# endif /* HAVE_FCNTL_H */ #endif #ifdef MS_WINDOWS