OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7338975
)
os: fix OpenBSD/PowerPC compilation
author
Brad
<brad@comstyle.com>
Sat, 2 Apr 2011 21:16:59 +0000
(17:16 -0400)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/libavutil/ppc/cpu.c
b/libavutil/ppc/cpu.c
index
85c1f2c
..
6b122ed
100644
(file)
--- 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>