diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-14 03:11:44 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-14 03:11:44 +0000 |
commit | 9128ec49b126ad996468ab4df290916241e2864d (patch) | |
tree | fc70ff2b9f42e2630e57791a83a5858be0efc1a7 /json_object_private.h | |
parent | 5ebfeaedc5413452aff7fa733abfabe97df100e8 (diff) | |
download | json-c-9128ec49b126ad996468ab4df290916241e2864d.tar.gz |
Include unistd.h to fix the build on OSX
Diffstat (limited to 'json_object_private.h')
-rw-r--r-- | json_object_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/json_object_private.h b/json_object_private.h index 4413955..d8dacd2 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 <unistd.h> +#endif /* HAVE_UNISTD_H */ + #ifdef _MSC_VER #include <BaseTsd.h> typedef SSIZE_T ssize_t; |