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
This commit is contained in:
Harald Welte 2019-01-26 17:39:19 +01:00
parent 066fc59ed0
commit 407f7f9307
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
*
*/
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#include <osmo-pcap/osmo_pcap_client.h>
#include <osmo-pcap/common.h>