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

2014-09-19 Thread Daniel Bomar
As suggested, this just adds _DEFAULT_SOURCE while preserving _SVID_SOURCE for whatever old systems still need it. Signed-off-by: Daniel Bomar --- libavformat/os_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/os_support.c b/libavformat/os_support.c index e8f063a

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

2014-09-19 Thread Daniel Bomar
What should be tested in configure? IMO take this patch and and if it breaks some old systems (not sure why it would) have a configure option to revert this on those systems. On Thu, Sep 18, 2014 at 5:39 PM, Carl Eugen Hoyos wrote: > Daniel Bomar gmail.com> writes: > >> Th

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

2014-09-18 Thread Daniel Bomar
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 _

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

2014-09-18 Thread Daniel Bomar
This actually generated an error trying to build ffmpeg as part of Chromium. Signed-off-by: Daniel Bomar --- libavformat/os_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/os_support.c b/libavformat/os_support.c index e8f063a..7a948d8 100644 --- a