cpu-test: Add unistd.h #include for getopt()
authorDiego Biurrun <diego@biurrun.de>
Wed, 13 Aug 2014 15:17:54 +0000 (17:17 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Aug 2014 19:37:25 +0000 (12:37 -0700)
libavutil/cpu.c

index a7e5f7f..354d21e 100644 (file)
@@ -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