avformat/os_support: Add _DEFAULT_SOURCE to hide warning about _SVID_SOURCE depreciation
authorDaniel Bomar <dbdaniel42@gmail.com>
Fri, 19 Sep 2014 19:56:00 +0000 (14:56 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Sep 2014 20:32:05 +0000 (22:32 +0200)
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

index e8f063a..f9d6eea 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 /* needed by inet_aton() */
+#define _DEFAULT_SOURCE
 #define _SVID_SOURCE
 
 #include "config.h"