Browse Source

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
tags/v0.5
Diego Biurrun 17 years ago
parent
commit
d0feff2a5b
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      ffmpeg.c
  2. +1
    -1
      libavcodec/utils.c
  3. +1
    -1
      libavformat/rtpdec.c

+ 1
- 1
ffmpeg.c View File

@@ -20,7 +20,7 @@
*/

/* needed for usleep() */
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600

#include "config.h"
#include <ctype.h>


+ 1
- 1
libavcodec/utils.c View File

@@ -26,7 +26,7 @@
*/

/* needed for mkstemp() */
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600

#include "libavutil/integer.h"
#include "libavutil/crc.h"


+ 1
- 1
libavformat/rtpdec.c View File

@@ -20,7 +20,7 @@
*/

/* needed for gethostname() */
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600

#include "libavcodec/bitstream.h"
#include "avformat.h"


Loading…
Cancel
Save