From: Jo-Philipp Wich Date: Tue, 21 Aug 2018 12:24:48 +0000 (+0200) Subject: build: use _DEFAULT_SOURCE X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=952bf9d754d021ee9c08f9add5c9af53aaaf39ae;p=oweals%2Fuhttpd.git build: use _DEFAULT_SOURCE Add _DEFAULT_SOURCE FTM in order to avoid warnings with recent glibc. Signed-off-by: Jo-Philipp Wich --- diff --git a/file.c b/file.c index 8ccf982..2f829f1 100644 --- a/file.c +++ b/file.c @@ -17,6 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #define _DARWIN_C_SOURCE #define _XOPEN_SOURCE 700 diff --git a/main.c b/main.c index fb27665..11b33ff 100644 --- a/main.c +++ b/main.c @@ -17,6 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #define _XOPEN_SOURCE 700