Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/12701


Change subject: Fix compiler warning about deprecated _BSD_SOURCE
......................................................................

Fix compiler warning about deprecated _BSD_SOURCE

On (at least) Debian unstable I'm seeing the following compiler
warninig:

/usr/include/features.h:184: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"

Apparently this was deprecated in glibc 2.20 released in 2014 (!)

Change-Id: I826189dec4107e7c3e8cf4c013316ef3014b7857
---
M src/osmo_client_core.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/01/12701/1

diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c
index 6414552..a56ebb4 100644
--- a/src/osmo_client_core.c
+++ b/src/osmo_client_core.c
@@ -20,7 +20,7 @@
  *
  */

-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 #include <osmo-pcap/osmo_pcap_client.h>
 #include <osmo-pcap/common.h>


--
To view, visit https://gerrit.osmocom.org/12701
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I826189dec4107e7c3e8cf4c013316ef3014b7857
Gerrit-Change-Number: 12701
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <[email protected]>

Reply via email to