From af1818276ef271af98e2e2bbabb4dc875b4fa7d8 Mon Sep 17 00:00:00 2001
From: Daniel Bomar <dbdaniel42@gmail.com>
Date: Fri, 19 Sep 2014 14:56:00 -0500
Subject: [PATCH] avformat/os_support: Add _DEFAULT_SOURCE to hide warning
 about _SVID_SOURCE depreciation

As suggested, this just adds _DEFAULT_SOURCE while preserving
_SVID_SOURCE for whatever old systems still need it.

Signed-off-by: Daniel Bomar <dbdaniel42@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavformat/os_support.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index e8f063aaf87..f9d6eeaf90b 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"
-- 
GitLab