[FFmpeg-devel] [PATCH] Change deprecated use of _SVID_SOURCE to _DEFAULT_SOURCE

Daniel Bomar dbdaniel42 at gmail.com
Fri Sep 19 00:16:35 CEST 2014


This is from /usr/include/features.h which is provided by glibc.  The
./configure, make build that ffmpeg uses only generates a warning but
for some reason Chromium's ninja + clang build system generates an
error.

/* _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   issue a warning; the expectation is that the source is being
   transitioned to use the new macro.  */
#if (defined _BSD_SOURCE || defined _SVID_SOURCE) \
    && !defined _DEFAULT_SOURCE
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
# undef  _DEFAULT_SOURCE
# define _DEFAULT_SOURCE 1
#endif


More information about the ffmpeg-devel mailing list