summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavformat/os_support.c1
-rw-r--r--libavformat/udp.c1
-rw-r--r--libswscale/utils.c1
3 files changed, 3 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"
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 248a808..6b17955 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -20,6 +20,7 @@
#include "config.h"
+#define _DEFAULT_SOURCE
#define _SVID_SOURCE // needed for MAP_ANONYMOUS
#include <assert.h>
#include <inttypes.h>
OpenPOWER on IntegriCloud