[FFmpeg-cvslog] cpu-test: Add unistd.h #include for getopt()

Diego Biurrun git at videolan.org
Thu Aug 14 01:48:28 CEST 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Aug 13 17:17:54 2014 +0200| [353240541d4ec317471b5cbcaa3e027d00ff8f5c] | committer: Diego Biurrun

cpu-test: Add unistd.h #include for getopt()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=353240541d4ec317471b5cbcaa3e027d00ff8f5c
---

 libavutil/cpu.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index a7e5f7f..354d21e 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -180,6 +180,10 @@ int av_cpu_count(void)
 #ifdef TEST
 
 #include <stdio.h>
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #include "avstring.h"
 
 #if !HAVE_GETOPT



More information about the ffmpeg-cvslog mailing list