Include unistd.h to fix the build on OSX

This commit is contained in:
Eric Haszlakiewicz
2020-06-14 03:11:44 +00:00
parent 5ebfeaedc5
commit 9128ec49b1
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
*
*******************************************************************************
*/
#include "config.h"
#include <stddef.h>

View 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;