diff options
author | joerg <joerg@pkgsrc.org> | 2012-04-17 17:40:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-04-17 17:40:49 +0000 |
commit | 31e8ad430111f0aaf41b197d78732349f1ac17b5 (patch) | |
tree | dc768b7bed29733a1200941a354f99d67364ffcb /audio/openal/patches | |
parent | d9a2224bf7e2e1ed1f2cf034fa5fa100eeab7a15 (diff) | |
download | pkgsrc-31e8ad430111f0aaf41b197d78732349f1ac17b5.tar.gz |
Fix build with clang.
Diffstat (limited to 'audio/openal/patches')
-rw-r--r-- | audio/openal/patches/patch-aa | 11 | ||||
-rw-r--r-- | audio/openal/patches/patch-src_arch_i386_x86__floatmul.c | 6 |
2 files changed, 13 insertions, 4 deletions
diff --git a/audio/openal/patches/patch-aa b/audio/openal/patches/patch-aa index 328c00d1883..1cac0f79b5c 100644 --- a/audio/openal/patches/patch-aa +++ b/audio/openal/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.3 2007/04/06 15:47:29 obache Exp $ +$NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $ --- src/backends/alc_backend_bsd.c.orig 2006-01-05 15:11:20.000000000 +0000 +++ src/backends/alc_backend_bsd.c @@ -42,3 +42,12 @@ $NetBSD: patch-aa,v 1.3 2007/04/06 15:47:29 obache Exp $ #ifdef DEBUG_MAXIMUS fprintf(stderr, "Couldn't reset dsp\n"); #endif +@@ -385,7 +401,7 @@ alcBackendSetAttributesNative_(ALC_OpenM + static void *grab_read_native(void) + { + fprintf(stderr,"grab_read_native Not implemented! (%s:%d)\n",__FILE__,__LINE__); +- return; ++ return NULL; + } + + void * diff --git a/audio/openal/patches/patch-src_arch_i386_x86__floatmul.c b/audio/openal/patches/patch-src_arch_i386_x86__floatmul.c index f8ea04ed696..b454640e1b5 100644 --- a/audio/openal/patches/patch-src_arch_i386_x86__floatmul.c +++ b/audio/openal/patches/patch-src_arch_i386_x86__floatmul.c @@ -1,4 +1,4 @@ -$NetBSD: patch-src_arch_i386_x86__floatmul.c,v 1.2 2011/09/22 15:18:39 wiz Exp $ +$NetBSD: patch-src_arch_i386_x86__floatmul.c,v 1.3 2012/04/17 17:40:50 joerg Exp $ Fix build with gcc-4.5. @@ -17,14 +17,14 @@ Fix build with gcc-4.5. + v_one.s[2] = 0; + v_one.s[3] = 0; temp = __builtin_ia32_pmulhw(*(v4hi*)bpt, v_sa.v); -+#if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ <= 3 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)) ++#if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ <= 3 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)) && !defined(__clang__) *(v4hi*)bpt = __builtin_ia32_psllw(temp, 1LL); +#else + *(v4hi*)bpt = __builtin_ia32_psllw(temp, v_one.v); +#endif bpt += 4; temp = __builtin_ia32_pmulhw(*(v4hi*)bpt, v_sa.v); -+#if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ <= 3 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)) ++#if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ <= 3 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 2)) && !defined(__clang__) *(v4hi*)bpt = __builtin_ia32_psllw(temp, 1LL); +#else + *(v4hi*)bpt = __builtin_ia32_psllw(temp, v_one.v); |