[FFmpeg-cvslog] r18178 - trunk/tools/trasher.c

diego subversion
Tue Mar 24 17:28:49 CET 2009


Author: diego
Date: Tue Mar 24 17:28:48 2009
New Revision: 18178

Log:
Add _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
extensions of POSIX. Avoids implicit declaration warnings on some systems.

Modified:
   trunk/tools/trasher.c

Modified: trunk/tools/trasher.c
==============================================================================
--- trunk/tools/trasher.c	Tue Mar 24 04:24:59 2009	(r18177)
+++ trunk/tools/trasher.c	Tue Mar 24 17:28:48 2009	(r18178)
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _XOPEN_SOURCE 600
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>



More information about the ffmpeg-cvslog mailing list