1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Fix on !i386/!ia64 and on 4.x.

In collaboration with: Stuart Cheshire <cheshire@apple.com>
This commit is contained in:
Alfred Perlstein 2004-03-19 23:44:07 +00:00
parent 3c4d2c4ddb
commit a786b42842
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104682
4 changed files with 45 additions and 7 deletions

View File

@ -23,10 +23,4 @@ MAKE_ARGS+= os=freebsd
BUILD_WRKSRC= ${WRKSRC}/mDNSPosix
INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000 || ( ${ARCH} != "i386" && ${ARCH} != "ia64" )
BROKEN= "Does not compile on 4.x or on !i386 and !ia64"
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,16 @@
--- mDNSCore/mDNSClientAPI.h.old Tue Mar 2 15:01:04 2004
+++ mDNSCore/mDNSClientAPI.h Fri Mar 19 15:26:43 2004
@@ -618,9 +618,12 @@
typedef unsigned char mDNSu8;
typedef signed short mDNSs16;
typedef unsigned short mDNSu16;
-#if _LP64
+#if defined(_LP64) || defined(__LP64__)
typedef signed int mDNSs32;
typedef unsigned int mDNSu32;
+#elif defined(_ILP64) || defined(__ILP64__)
+typedef signed int32 mDNSs32;
+typedef unsigned int32 mDNSu32;
#else
typedef signed long mDNSs32;
typedef unsigned long mDNSu32;

View File

@ -0,0 +1,14 @@
--- mDNSPosix/mDNSUNP.h.old Fri Mar 19 15:34:56 2004
+++ mDNSPosix/mDNSUNP.h Fri Mar 19 15:38:28 2004
@@ -67,7 +67,11 @@
#ifndef __mDNSUNP_h
#define __mDNSUNP_h
+#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
#include <stdint.h>
+#elif !defined(__FreeBSD__)
+#include <stdint.h>
+#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>

View File

@ -0,0 +1,14 @@
--- mDNSShared/dns_sd.h.old Fri Mar 19 15:38:48 2004
+++ mDNSShared/dns_sd.h Fri Mar 19 15:38:58 2004
@@ -46,7 +46,11 @@
#include <sys/types.h>
#include <sys/socket.h>
+#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
#include <stdint.h>
+#elif !defined(__FreeBSD__)
+#include <stdint.h>
+#endif
#include <netinet/in.h>