[FFmpeg-devel] [PATCH] Add _DEFAULT_SOURCE to hide warning about _SVID_SOURCE depreciation

Daniel Bomar dbdaniel42 at gmail.com
Fri Sep 19 21:56:00 CEST 2014


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

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

diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index e8f063a..f9d6eea 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"
-- 
2.1.0



More information about the ffmpeg-devel mailing list