summaryrefslogtreecommitdiff
path: root/tprintf.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 /tprintf.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 'tprintf.c')
-rw-r--r--tprintf.c1
1 files changed, 1 insertions, 0 deletions
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 <ctype.h>
#include <stdio.h>
#include <stdarg.h>