Browse Source

Include unistd.h to fix the build on OSX

tags/json-c-0.15-20200726
Eric Haszlakiewicz 5 years ago
parent
commit
9128ec49b1
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      json_object_iterator.c
  2. +4
    -0
      json_object_private.h

+ 1
- 0
json_object_iterator.c View File

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

#include <stddef.h>



+ 4
- 0
json_object_private.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;


Loading…
Cancel
Save