[FFmpeg-cvslog] os: fix OpenBSD/PowerPC compilation

Brad git at videolan.org
Mon Apr 11 04:12:08 CEST 2011


ffmpeg | branch: master | Brad <brad at comstyle.com> | Sat Apr  2 17:16:59 2011 -0400| [3028b6ede624410d40ab7c77a67b62fc6ad3a8f0] | committer: Luca Barbato

os: fix OpenBSD/PowerPC compilation

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 at gentoo.org>

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

 libavutil/ppc/cpu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
index 85c1f2c..6b122ed 100644
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -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>



More information about the ffmpeg-cvslog mailing list