summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-07-08 13:18:39 +0200
committerDiego Biurrun <diego@biurrun.de>2017-07-10 10:22:56 +0200
commit825e463a170c7004c63030dc484b2b2de869227b (patch)
tree2cd168e2bf51d9e0c42a67c744172e6cec794aac /libavformat
parent0f5ad12ba2b538cb329c507ecc914e06bfa70194 (diff)
downloadffmpeg-streaming-825e463a170c7004c63030dc484b2b2de869227b.zip
ffmpeg-streaming-825e463a170c7004c63030dc484b2b2de869227b.tar.gz
build: Add feature test macros for glibc 2.19+
glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and _SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE where the latter two are used to be forwards-compatible and avoid warnings about the use of deprecated definitions.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/os_support.c1
-rw-r--r--libavformat/udp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 6a0c1fa..c125dbe 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -21,6 +21,7 @@
*/
/* needed by inet_aton() */
+#define _DEFAULT_SOURCE
#define _SVID_SOURCE
#include "config.h"
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 9d4c130..a29eb1b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -24,6 +24,7 @@
* UDP protocol
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* Needed for using struct ip_mreq with recent glibc */
#include "avformat.h"
OpenPOWER on IntegriCloud