summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-12-19 03:34:17 +0000
committerjlam <jlam@pkgsrc.org>2004-12-19 03:34:17 +0000
commit59a603f4ff8fb3cb222a84540e0d03a6a7657be0 (patch)
tree5aece134b4c90ccb55839c4568dc04551da612ce
parentac009e1c959a28c28a755495d811b19a1d3d27af (diff)
downloadpkgsrc-59a603f4ff8fb3cb222a84540e0d03a6a7657be0.tar.gz
Fix code that assumed that sizeof(long) == 32. This fixes the build on
amd64.
-rw-r--r--audio/libopendaap/distinfo3
-rw-r--r--audio/libopendaap/patches/patch-ae33
2 files changed, 35 insertions, 1 deletions
diff --git a/audio/libopendaap/distinfo b/audio/libopendaap/distinfo
index f36bcf0e678..7918e40783c 100644
--- a/audio/libopendaap/distinfo
+++ b/audio/libopendaap/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2004/08/01 16:13:32 kristerw Exp $
+$NetBSD: distinfo,v 1.3 2004/12/19 03:34:17 jlam Exp $
SHA1 (libopendaap-0.2.1.tar.bz2) = 9e5d143087f7f5366250b47ba3444fa3ed46794d
Size (libopendaap-0.2.1.tar.bz2) = 325586 bytes
@@ -6,3 +6,4 @@ SHA1 (patch-aa) = 360e6173f943fe6283bc28b2ad9e5acd76041899
SHA1 (patch-ab) = 44c6228eade8122da02972f6f73e34423457ded0
SHA1 (patch-ac) = 0dbca4ad085ffe81bf707b97bbc77408faa9c6ca
SHA1 (patch-ad) = 87735f1d47ddb9aa53a4220675060a31979cb771
+SHA1 (patch-ae) = 606756fe07c6af4fc0361f5ae5f3f62b4a40d59e
diff --git a/audio/libopendaap/patches/patch-ae b/audio/libopendaap/patches/patch-ae
new file mode 100644
index 00000000000..6a67740f08f
--- /dev/null
+++ b/audio/libopendaap/patches/patch-ae
@@ -0,0 +1,33 @@
+$NetBSD: patch-ae,v 1.1 2004/12/19 03:34:17 jlam Exp $
+
+--- mDNS/mDNSClientAPI.h.orig 2004-04-13 03:05:11.000000000 -0400
++++ mDNS/mDNSClientAPI.h
+@@ -408,6 +408,7 @@ Merge in license terms from Quinn's copy
+ #define __mDNSClientAPI_h
+
+ #include <stdarg.h> // stdarg.h is required for for va_list support for the mDNS_vsnprintf declaration
++#include <sys/types.h>
+ #include "mDNSDebug.h"
+
+ #ifdef __cplusplus
+@@ -478,13 +479,13 @@ typedef enum // From RFC 1035
+
+ // mDNS defines its own names for these common types to simplify portability across
+ // multiple platforms that may each have their own (different) names for these types.
+-typedef int mDNSBool;
+-typedef signed char mDNSs8;
+-typedef unsigned char mDNSu8;
+-typedef signed short mDNSs16;
+-typedef unsigned short mDNSu16;
+-typedef signed long mDNSs32;
+-typedef unsigned long mDNSu32;
++typedef int mDNSBool;
++typedef int8_t mDNSs8;
++typedef u_int8_t mDNSu8;
++typedef int16_t mDNSs16;
++typedef u_int16_t mDNSu16;
++typedef int32_t mDNSs32;
++typedef u_int32_t mDNSu32;
+
+ // To enforce useful type checking, we make mDNSInterfaceID be a pointer to a dummy struct
+ // This way, mDNSInterfaceIDs can be assigned, and compared with each other, but not with other types