summaryrefslogtreecommitdiff
path: root/astraceroute.c
diff options
context:
space:
mode:
authorarch3y <arch3y@archstrike.org>2016-04-15 20:36:57 -0400
committerTobias Klauser <tklauser@distanz.ch>2016-04-17 17:09:20 +0200
commita0f448cecc02a6e101aa3858b2d68b9cccf11149 (patch)
treee44bdd7dee1af08144da9da62092bc171e5bf7df /astraceroute.c
parentb5d1046e526067a521f5dc0febb0b50f6fdeb64c (diff)
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 <arch3y@archstrike.org> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'astraceroute.c')
-rw-r--r--astraceroute.c1
1 files changed, 1 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <signal.h>