From a0f448cecc02a6e101aa3858b2d68b9cccf11149 Mon Sep 17 00:00:00 2001 From: arch3y Date: Fri, 15 Apr 2016 20:36:57 -0400 Subject: build: Define _DEFAULT_SOURCE to fix compilation warnings with glibc>=2.20 Fixes depracation issues for glibc>=2.20 if we define _BSD_SOURCE we must also define _DEFAULT_SOURCE as well from tprintf.c warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" from astraceroute.c warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Signed-off-by: Arch3y Signed-off-by: Tobias Klauser --- tprintf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tprintf.c') diff --git a/tprintf.c b/tprintf.c index 43f862a..90aa7d6 100644 --- a/tprintf.c +++ b/tprintf.c @@ -6,6 +6,7 @@ */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #include #include #include -- cgit v1.2.3-54-g00ecf