From: Eric Haszlakiewicz Date: Sun, 14 Jun 2020 03:11:44 +0000 (+0000) Subject: Include unistd.h to fix the build on OSX X-Git-Tag: json-c-0.15-20200726~34^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9128ec49b126ad996468ab4df290916241e2864d;p=thirdparty%2Fjson-c.git Include unistd.h to fix the build on OSX --- diff --git a/json_object_iterator.c b/json_object_iterator.c index 796015ee..1c2b3f2c 100644 --- a/json_object_iterator.c +++ b/json_object_iterator.c @@ -9,6 +9,7 @@ * ******************************************************************************* */ +#include "config.h" #include diff --git a/json_object_private.h b/json_object_private.h index 44139557..d8dacd26 100644 --- a/json_object_private.h +++ b/json_object_private.h @@ -24,6 +24,10 @@ struct json_object; #include "json_inttypes.h" #include "json_types.h" +#ifdef HAVE_UNISTD_H +#include +#endif /* HAVE_UNISTD_H */ + #ifdef _MSC_VER #include typedef SSIZE_T ssize_t;