[SCM] libav/experimental: Fix compilation on Mac OS X 10.4: Defining _POSIX_C_SOURCE hides the u_char & similar typedefs that sysctl.h needs. Since sysctl() itself isn't POSIX undefining _POSIX_C_SOURCE for check_altivec.c seems the best way to fix this. patch by David Conrad lessen42 at gmail com

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:30:04 UTC 2013


The following commit has been merged in the experimental branch:
commit 7f0d242b14e3dafade0e910d1031d2774da005a1
Author: David Conrad <lessen42 at gmail.com>
Date:   Sat Sep 13 13:18:35 2008 +0000

    Fix compilation on Mac OS X 10.4: Defining _POSIX_C_SOURCE hides the u_char &
    similar typedefs that sysctl.h needs. Since sysctl() itself isn't POSIX
    undefining _POSIX_C_SOURCE for check_altivec.c seems the best way to fix this.
    patch by David Conrad lessen42 at gmail com
    
    Originally committed as revision 15306 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/ppc/check_altivec.c b/libavcodec/ppc/check_altivec.c
index 932c218..f88b276 100644
--- a/libavcodec/ppc/check_altivec.c
+++ b/libavcodec/ppc/check_altivec.c
@@ -23,6 +23,7 @@
  */
 
 #ifdef __APPLE__
+#undef _POSIX_C_SOURCE
 #include <sys/sysctl.h>
 #elif __AMIGAOS4__
 #include <exec/exec.h>

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list