diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-09-29 06:22:12 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-09-29 06:22:12 +0000 |
commit | d0feff2a5b9bfb75f21387ce0d52618d524d6015 (patch) | |
tree | 723121f8222f0808e2283baab820535754195dea | |
parent | c44c4e181ff19e5dff592fb9c1e8f033766395aa (diff) | |
download | ffmpeg-d0feff2a5b9bfb75f21387ce0d52618d524d6015.tar.gz |
Uniformly define _XOPEN_SOURCE to 600.
The feature_tests.h header from Sun systems (Solaris/OpenSolaris) will abort
the build if _XOPEN_SOURCE is defined to 500, and C99 is requested (as well
as POSIX.1-2001), and will only accept it to be defined to 600.
inspired by a patch from Diego Pettenò, flameeyes gmail com
Originally committed as revision 15460 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 2 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 | ||||
-rw-r--r-- | libavformat/rtpdec.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ */ /* needed for usleep() */ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include "config.h" #include <ctype.h> diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e56b9870a5..155978744a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -26,7 +26,7 @@ */ /* needed for mkstemp() */ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include "libavutil/integer.h" #include "libavutil/crc.h" diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 9fb06ee5ab..119682041d 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -20,7 +20,7 @@ */ /* needed for gethostname() */ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include "libavcodec/bitstream.h" #include "avformat.h" |