Merge pull request #2142 from signalwire/fix_macos_build
[xmlrpc-c] Fix MacOS build
This commit is contained in:
commit
545538fb7a
|
@ -3,7 +3,12 @@
|
||||||
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <strings.h>
|
||||||
|
#else
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xmlrpc_config.h"
|
#include "xmlrpc_config.h"
|
||||||
#include "c_util.h"
|
#include "c_util.h"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
/* Copyright information is at end of file */
|
/* Copyright information is at end of file */
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#define _DARWIN_C_SOURCE
|
||||||
|
#endif
|
||||||
#define _BSD_SOURCE /* Make sure setgroups()is in <grp.h> */
|
#define _BSD_SOURCE /* Make sure setgroups()is in <grp.h> */
|
||||||
#ifndef _DEFAULT_SOURCE
|
#ifndef _DEFAULT_SOURCE
|
||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#else
|
||||||
#include <wait.h>
|
#include <wait.h>
|
||||||
|
#endif
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "xmlrpc_config.h"
|
#include "xmlrpc_config.h"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#define _DARWIN_C_SOURCE
|
||||||
|
#endif
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE /* But only when HAVE_ASPRINTF */
|
#define _GNU_SOURCE /* But only when HAVE_ASPRINTF */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue