diff options
-rw-r--r-- | src/libezxml/ezxml.c | 1 | ||||
-rw-r--r-- | src/libpiano/piano.c | 1 | ||||
-rw-r--r-- | src/libpiano/xml.c | 1 | ||||
-rw-r--r-- | src/libwaitress/waitress.c | 1 | ||||
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/settings.c | 1 | ||||
-rw-r--r-- | src/terminal.c | 1 | ||||
-rw-r--r-- | src/ui.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/src/libezxml/ezxml.c b/src/libezxml/ezxml.c index e0b5a15..ced87ea 100644 --- a/src/libezxml/ezxml.c +++ b/src/libezxml/ezxml.c @@ -24,6 +24,7 @@ #ifndef __FreeBSD__ #define _BSD_SOURCE /* required by strdup() */ +#define _DARWIN_C_SOURCE /* required by strdup() on OS X */ #endif #include <stdlib.h> diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 34be389..addb988 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -23,6 +23,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _BSD_SOURCE /* required by strdup() */ +#define _DARWIN_C_SOURCE /* strdup() on OS X */ #endif #include <stdio.h> diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c index 6d8e7f9..a21a109 100644 --- a/src/libpiano/xml.c +++ b/src/libpiano/xml.c @@ -23,6 +23,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _BSD_SOURCE /* required by strdup() */ +#define _DARWIN_C_SOURCE /* strdup() on OS X */ #endif #include <stdio.h> diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index 93b60a2..4179685 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -24,6 +24,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _POSIX_C_SOURCE 1 /* required by getaddrinfo() */ #define _BSD_SOURCE /* snprintf() */ +#define _DARWIN_C_SOURCE /* snprintf() on OS X */ #endif #include <sys/types.h> @@ -24,6 +24,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _POSIX_C_SOURCE 1 /* fileno() */ #define _BSD_SOURCE /* strdup() */ +#define _DARWIN_C_SOURCE /* strdup() on OS X */ #endif /* system includes */ diff --git a/src/settings.c b/src/settings.c index cae4c8e..2061b39 100644 --- a/src/settings.c +++ b/src/settings.c @@ -26,6 +26,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _POSIX_C_SOURCE 1 /* PATH_MAX */ #define _BSD_SOURCE /* strdup() */ +#define _DARWIN_C_SOURCE /* strdup() on OS X */ #endif #include <string.h> diff --git a/src/terminal.c b/src/terminal.c index 4808083..d3a1121 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -24,6 +24,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _POSIX_C_SOURCE 1 /* fileno() */ #define _BSD_SOURCE /* setlinebuf() */ +#define _DARWIN_C_SOURCE /* setlinebuf() on OS X */ #endif #include <termios.h> @@ -26,6 +26,7 @@ THE SOFTWARE. #ifndef __FreeBSD__ #define _POSIX_C_SOURCE 1 /* fileno() */ #define _BSD_SOURCE /* strdup() */ +#define _DARWIN_C_SOURCE /* strdup() on OS X */ #endif #include <stdio.h> |