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 --- astraceroute.c | 1 + tprintf.c | 1 + 2 files changed, 2 insertions(+) diff --git a/astraceroute.c b/astraceroute.c index ae40ff6..9600921 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -5,6 +5,7 @@ */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #include #include #include 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