From 1b6dfb8324c378f87b0e04e9532534b4b7c9eac1 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 22 Jun 2017 22:51:08 +0200 Subject: [PATCH] Include configure determined flags via setup.h Compilation issued warnings about missing prototypes without the flags to include unistd.h. --- src/zlib/zconf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zlib/zconf.h b/src/zlib/zconf.h index 5e1d68a004..dda00dadeb 100644 --- a/src/zlib/zconf.h +++ b/src/zlib/zconf.h @@ -8,6 +8,11 @@ #ifndef ZCONF_H #define ZCONF_H +#ifdef __APPLE__ +/* use wxWidgets' configure */ +#include "wx/setup.h" +#endif + /* * If you *really* need a unique prefix for all types and library functions, * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.