diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-07-08 13:18:39 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-07-10 10:22:56 +0200 |
commit | 825e463a170c7004c63030dc484b2b2de869227b (patch) | |
tree | 2cd168e2bf51d9e0c42a67c744172e6cec794aac /libswscale/utils.c | |
parent | 0f5ad12ba2b538cb329c507ecc914e06bfa70194 (diff) |
build: Add feature test macros for glibc 2.19+
glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and
_SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE
where the latter two are used to be forwards-compatible and avoid warnings
about the use of deprecated definitions.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 248a8081ff..6b17955f54 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> |