From 900fa7d430111c741702f1a92e7fcc291ad51c52 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 2 Aug 2015 12:15:30 -0700 Subject: include fcntl.h on all *nix platforms (closes #24217) Patch by Jeffrey Armstrong. --- Modules/mmapmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/mmapmodule.c') diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 137142420f..a0cceebf55 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 -- cgit v1.2.1