From 7de1d174511bf8cf7b2a16609018d1fbc8bb240c Mon Sep 17 00:00:00 2001 From: naddy Date: Wed, 14 Oct 2009 14:27:34 +0000 Subject: [PATCH] char is unsigned on some archs (powerpc, arm) --- audio/openal/Makefile | 4 ++-- .../openal/patches/patch-common_include_AL_al_h | 12 ++++++++++++ .../openal/patches/patch-common_include_AL_alc_h | 16 +++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 audio/openal/patches/patch-common_include_AL_al_h diff --git a/audio/openal/Makefile b/audio/openal/Makefile index 9cc99ca2384..bf7bf9b4afd 100644 --- a/audio/openal/Makefile +++ b/audio/openal/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.10 2009/10/10 22:51:48 sthen Exp $ +# $OpenBSD: Makefile,v 1.11 2009/10/14 14:27:34 naddy Exp $ COMMENT= cross-platform 3D audio API DISTNAME= openal-0.0.8 -PKGNAME= ${DISTNAME}p2 +PKGNAME= ${DISTNAME}p3 CATEGORIES= audio SHARED_LIBS += openal 1.0 # .0.0 diff --git a/audio/openal/patches/patch-common_include_AL_al_h b/audio/openal/patches/patch-common_include_AL_al_h new file mode 100644 index 00000000000..294d8510c0a --- /dev/null +++ b/audio/openal/patches/patch-common_include_AL_al_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-common_include_AL_al_h,v 1.1 2009/10/14 14:27:34 naddy Exp $ +--- common/include/AL/al.h.orig Wed Oct 14 16:22:21 2009 ++++ common/include/AL/al.h Wed Oct 14 16:22:52 2009 +@@ -73,7 +73,7 @@ typedef char ALboolean; + typedef char ALchar; + + /** signed 8-bit 2's complement integer */ +-typedef char ALbyte; ++typedef signed char ALbyte; + + /** unsigned 8-bit integer */ + typedef unsigned char ALubyte; diff --git a/audio/openal/patches/patch-common_include_AL_alc_h b/audio/openal/patches/patch-common_include_AL_alc_h index 32d2ed5bf78..8a12c5a4419 100644 --- a/audio/openal/patches/patch-common_include_AL_alc_h +++ b/audio/openal/patches/patch-common_include_AL_alc_h @@ -1,9 +1,19 @@ -$OpenBSD: patch-common_include_AL_alc_h,v 1.1 2009/10/10 13:55:44 phessler Exp $ +$OpenBSD: patch-common_include_AL_alc_h,v 1.2 2009/10/14 14:27:34 naddy Exp $ +plain char is unsigned on some architectures typedef void is illegal in newer versions of GCC ---- common/include/AL/alc.h.orig Sun May 17 21:50:13 2009 -+++ common/include/AL/alc.h Sun May 17 21:50:29 2009 +--- common/include/AL/alc.h.orig Sat Feb 11 10:36:55 2006 ++++ common/include/AL/alc.h Wed Oct 14 16:22:38 2009 +@@ -52,7 +52,7 @@ typedef char ALCboolean; + typedef char ALCchar; + + /** signed 8-bit 2's complement integer */ +-typedef char ALCbyte; ++typedef signed char ALCbyte; + + /** unsigned 8-bit integer */ + typedef unsigned char ALCubyte; @@ -82,7 +82,7 @@ typedef float ALCfloat; typedef double ALCdouble;