diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-04 15:18:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-04 15:32:10 +0200 |
commit | 1bf5ab5aafe6c0da71eef9ad21bc129caa439599 (patch) | |
tree | 281c281fd01358c3fcafbe64029e8b97d44c90c1 | |
parent | f2e3cb0f9de3df60fc6869fb819656cc1c75721c (diff) | |
download | uhttpd-1bf5ab5aafe6c0da71eef9ad21bc129caa439599.tar.gz |
define _XOPEN_SOURCE and _BSD_SOURCE globally, increase _XOPEN_SOURCE to include strdup et al on mac os x
-rw-r--r-- | uhttpd-file.c | 3 | ||||
-rw-r--r-- | uhttpd-utils.c | 3 | ||||
-rw-r--r-- | uhttpd.c | 2 | ||||
-rw-r--r-- | uhttpd.h | 3 |
4 files changed, 3 insertions, 8 deletions
diff --git a/uhttpd-file.c b/uhttpd-file.c index 0bafc2b..4296cdb 100644 --- a/uhttpd-file.c +++ b/uhttpd-file.c @@ -16,9 +16,6 @@ * limitations under the License. */ -#define _XOPEN_SOURCE 500 /* strptime() */ -#define _BSD_SOURCE /* scandir(), timegm() */ - #include "uhttpd.h" #include "uhttpd-utils.h" #include "uhttpd-file.h" diff --git a/uhttpd-utils.c b/uhttpd-utils.c index c8d3bb4..1e1ac80 100644 --- a/uhttpd-utils.c +++ b/uhttpd-utils.c @@ -16,9 +16,6 @@ * limitations under the License. */ -#define _XOPEN_SOURCE 500 /* crypt() */ -#define _BSD_SOURCE /* strcasecmp(), strncasecmp() */ - #include "uhttpd.h" #include "uhttpd-utils.h" @@ -16,8 +16,6 @@ * limitations under the License. */ -#define _XOPEN_SOURCE 500 /* crypt() */ - #include "uhttpd.h" #include "uhttpd-utils.h" #include "uhttpd-file.h" @@ -18,6 +18,9 @@ #ifndef _UHTTPD_ +#define _BSD_SOURCE +#define _XOPEN_SOURCE 700 + #include <stdio.h> #include <stdlib.h> #include <stdbool.h> |