From 26e8895b7395ed180dcb7e30465058c45050b5e2 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sat, 3 Oct 2015 07:41:00 -0500 Subject: all: add _DEFAULT_SOURCE locally wherever needed Glibc 2.20 onwards generates a deprecation warning for usage of _BSD_SOURCE and _SVID_SOURCE. The solution from man feature_test_macros is to define both _DEFAULT_SOURCE and the old macros. This solution is on the lines of the one in commit af1818276ef271af98e2e2bbabb4dc875b4fa7d8. Signed-off-by: Ganesh Ajjanagadde Signed-off-by: Ronald S. Bultje --- libswscale/utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libswscale') diff --git a/libswscale/utils.c b/libswscale/utils.c index eb1c940371..651b07a0ff 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 #define _DARWIN_C_SOURCE // needed for MAP_ANON #include -- cgit v1.2.3