aboutsummaryrefslogtreecommitdiff
path: root/audio/nas
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-05-20 08:07:50 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-05-20 08:07:50 +0000
commit366285f8d48db4e93bda0a2af29ce3bccb85a926 (patch)
tree3d6d8f40a2eba60a85c65fa545f2beb5245efdb5 /audio/nas
parent924c483f2717698bce58df2260fb2188fcf7f9f6 (diff)
downloadports-366285f8d48db4e93bda0a2af29ce3bccb85a926.tar.gz
ports-366285f8d48db4e93bda0a2af29ce3bccb85a926.zip
Fix build on 64 bit platforms
Notes
Notes: svn path=/head/; revision=162857
Diffstat (limited to 'audio/nas')
-rw-r--r--audio/nas/files/patch-clients_audio_aupanel_aupanel.c25
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);