[SCM] libav/experimental: cpu-test: Add unistd.h #include for getopt()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sat Aug 30 15:49:46 UTC 2014


The following commit has been merged in the experimental branch:
commit 353240541d4ec317471b5cbcaa3e027d00ff8f5c
Author: Diego Biurrun <diego at biurrun.de>
Date:   Wed Aug 13 17:17:54 2014 +0200

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

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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list