]> granicus.if.org Git - json-c/commitdiff
Include unistd.h to fix the build on OSX
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 14 Jun 2020 03:11:44 +0000 (03:11 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 14 Jun 2020 03:11:44 +0000 (03:11 +0000)
json_object_iterator.c
json_object_private.h

index 796015ee02919e9ca9f8f6b00159841102a400b7..1c2b3f2c94d6a8760165c2a741aced6115aa78ea 100644 (file)
@@ -9,6 +9,7 @@
 *
 *******************************************************************************
 */
+#include "config.h"
 
 #include <stddef.h>
 
index 44139557e1111ad561a1a5b3b796d4fb4f5151c8..d8dacd260eac2b7fe503bec2071df8cccb94cb7e 100644 (file)
@@ -24,6 +24,10 @@ struct json_object;
 #include "json_inttypes.h"
 #include "json_types.h"
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
+
 #ifdef _MSC_VER
 #include <BaseTsd.h>
 typedef SSIZE_T ssize_t;