[FFmpeg-cvslog] r15460 - in trunk: ffmpeg.c libavcodec/utils.c libavformat/rtpdec.c

diego subversion
Mon Sep 29 08:22:12 CEST 2008


Author: diego
Date: Mon Sep 29 08:22:12 2008
New Revision: 15460

Log:
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


Modified:
   trunk/ffmpeg.c
   trunk/libavcodec/utils.c
   trunk/libavformat/rtpdec.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Mon Sep 29 08:22:12 2008
@@ -20,7 +20,7 @@
  */
 
 /* needed for usleep() */
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
 
 #include "config.h"
 #include <ctype.h>

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Mon Sep 29 08:22:12 2008
@@ -26,7 +26,7 @@
  */
 
 /* needed for mkstemp() */
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
 
 #include "libavutil/integer.h"
 #include "libavutil/crc.h"

Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c	(original)
+++ trunk/libavformat/rtpdec.c	Mon Sep 29 08:22:12 2008
@@ -20,7 +20,7 @@
  */
 
 /* needed for gethostname() */
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 600
 
 #include "libavcodec/bitstream.h"
 #include "avformat.h"




More information about the ffmpeg-cvslog mailing list