diff utils.c @ 7576:e50e9def7428 libavcodec

ensure we get explicit definition of various _XOPEN_SOURCE functions we use
author aurel
date Thu, 14 Aug 2008 22:01:59 +0000
parents 398636f16e7e
children 6082ce39f8eb
line wrap: on
line diff
--- a/utils.c	Thu Aug 14 19:38:39 2008 +0000
+++ b/utils.c	Thu Aug 14 22:01:59 2008 +0000
@@ -25,6 +25,9 @@
  * utils.
  */
 
+/* needed for mkstemp() */
+#define _XOPEN_SOURCE 500
+
 #include "libavutil/integer.h"
 #include "libavutil/crc.h"
 #include "avcodec.h"
@@ -32,6 +35,7 @@
 #include "opt.h"
 #include "imgconvert.h"
 #include "audioconvert.h"
+#include <stdlib.h>
 #include <stdarg.h>
 #include <limits.h>
 #include <float.h>