]> git.sesse.net Git - ffmpeg/commitdiff
os: fix OpenBSD/PowerPC compilation
authorBrad <brad@comstyle.com>
Sat, 2 Apr 2011 21:16:59 +0000 (17:16 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 10 Apr 2011 03:02:29 +0000 (05:02 +0200)
When attempting to re-enable the AltiVec support it was noticed
that we need to undefine _POSIX_C_SOURCE to appease the headers
for ff_get_cpu_flags_ppc() to be able to compile.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/ppc/cpu.c

index 85c1f2ca11c84cead5251aa2e277ff11cb374f40..6b122ed8c4347a4ae52554766b6ed5d40d8d08c3 100644 (file)
@@ -20,6 +20,7 @@
 #undef _POSIX_C_SOURCE
 #include <sys/sysctl.h>
 #elif defined(__OpenBSD__)
+#undef _POSIX_C_SOURCE
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <machine/cpu.h>