diff options
author | vd <vd@FreeBSD.org> | 2006-05-20 16:07:50 +0800 |
---|---|---|
committer | vd <vd@FreeBSD.org> | 2006-05-20 16:07:50 +0800 |
commit | 4fb20b9550236024b7321951100183ae1b5651eb (patch) | |
tree | 7f9de5afc027f81ca8a1317062451bed28452fac /audio/nas | |
parent | 8368303702a3de10276f2dbec07d3c516924c626 (diff) | |
download | freebsd-ports-gnome-4fb20b9550236024b7321951100183ae1b5651eb.tar.gz freebsd-ports-gnome-4fb20b9550236024b7321951100183ae1b5651eb.tar.zst freebsd-ports-gnome-4fb20b9550236024b7321951100183ae1b5651eb.zip |
Fix build on 64 bit platforms
Diffstat (limited to 'audio/nas')
-rw-r--r-- | audio/nas/files/patch-clients_audio_aupanel_aupanel.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/audio/nas/files/patch-clients_audio_aupanel_aupanel.c b/audio/nas/files/patch-clients_audio_aupanel_aupanel.c index bcea5d85b0c1..ef466560e4ee 100644 --- a/audio/nas/files/patch-clients_audio_aupanel_aupanel.c +++ b/audio/nas/files/patch-clients_audio_aupanel_aupanel.c @@ -1,22 +1,37 @@ ---- clients/audio/aupanel/aupanel.c Thu Apr 7 15:08:14 2005 -+++ clients/audio/aupanel/aupanel.c Mon Oct 10 11:23:01 2005 -@@ -29,4 +29,5 @@ +--- clients/audio/aupanel/aupanel.c.orig Tue Nov 22 03:09:06 2005 ++++ clients/audio/aupanel/aupanel.c Sat May 20 10:58:12 2006 +@@ -28,6 +28,7 @@ + */ #include <stdio.h> +#include <inttypes.h> #include <stdlib.h> #ifndef SYSV -@@ -262,5 +263,5 @@ + #include <audio/Aos.h> /* for string and other os stuff */ +@@ -271,7 +272,7 @@ + if (!state) /* ignore resets */ return; - AuDeviceInputMode(da) = (int) XawToggleGetCurrent(w) == 1 + AuDeviceInputMode(da) = (intptr_t) XawToggleGetCurrent(w) == 1 ? AuDeviceInputModeLineIn : AuDeviceInputModeMicrophone; -@@ -326,5 +327,5 @@ + AuSetDeviceAttributes(g->aud, AuDeviceIdentifier(da), +@@ -335,7 +336,7 @@ + { GlobalDataPtr g = (GlobalDataPtr) gp; AuDeviceAttributes *da = &g->da[g->deviceNum]; - int value = (int) valuep; + intptr_t value = (intptr_t) valuep; AuDeviceGain(da) = AuFixedPointFromSum(value, 0); + AuSetDeviceAttributes(g->aud, AuDeviceIdentifier(da), +@@ -366,7 +367,7 @@ + g->restoreValues[g->deviceNum] = current; + setGain(w, gp, (XtPointer)0); + } else if(g->restoreValues[g->deviceNum] > 0){ +- setGain(w, gp, (XtPointer)g->restoreValues[g->deviceNum]); ++ setGain(w, gp, (XtPointer)(intptr_t)g->restoreValues[g->deviceNum]); + g->restoreValues[g->deviceNum] = 0; + } + showDevice((GlobalDataPtr)gp); |