File fix-64bit.diff of Package mt-daapd
--- src/mDNSClientAPI.h
+++ src/mDNSClientAPI.h 2005/02/09 08:23:05
@@ -523,13 +523,9 @@
typedef unsigned char mDNSu8;
typedef signed short mDNSs16;
typedef unsigned short mDNSu16;
-#if _LP64
-typedef signed int mDNSs32;
-typedef unsigned int mDNSu32;
-#else
-typedef signed long mDNSs32;
-typedef unsigned long mDNSu32;
-#endif
+#include <sys/types.h>
+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
--- src/mDNSUNP.c
+++ src/mDNSUNP.c 2005/02/09 08:22:38
@@ -151,8 +151,7 @@
for (ptr = buf; ptr < buf + ifc.ifc_len; ) {
ifr = (struct ifreq *) ptr;
- len = GET_SA_LEN(ifr->ifr_addr);
- ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
+ ptr += sizeof(*ifr);
// fprintf(stderr, "intf %d name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family);