aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-13 17:17:54 +0200
committerDiego Biurrun <diego@biurrun.de>2014-08-13 12:37:25 -0700
commit353240541d4ec317471b5cbcaa3e027d00ff8f5c (patch)
tree1b41fef24d236a18858283f90e6fc49c19fd84be /libavutil/cpu.c
parent30e50c50274f88f0f5ae829f401cd3c7f5266719 (diff)
downloadffmpeg-353240541d4ec317471b5cbcaa3e027d00ff8f5c.tar.gz
cpu-test: Add unistd.h #include for getopt()
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index a7e5f7f345..354d21e76f 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