From 731bf3c34ed2469596804e2d45022ed9bc15a29a Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 25 Nov 2014 17:03:53 +0900 Subject: [PATCH] ecore-con - silence bsd source wanrings for dns.c silence this annoying warning we've had for a while: In file included from /usr/include/stdint.h:25:0, from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include/stdint.h:9, from lib/ecore_con/dns.c:45: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" --- src/lib/ecore_con/dns.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c index 96e012d..8887d6a 100644 --- a/src/lib/ecore_con/dns.c +++ b/src/lib/ecore_con/dns.c @@ -28,6 +28,9 @@ #define _XOPEN_SOURCE 600 #endif +#undef _DEFAULT_SOURCE +#define _DEFAULT_SOURCE + #undef _BSD_SOURCE #define _BSD_SOURCE -- 2.7.4