summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-10-19 07:56:48 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-10-19 07:56:48 +0000
commitf80fc1ec06077377902e986ad15804a728586dea (patch)
treed39919b69e6eb51a7ced22acf28f6cd6a6d5eb6f /net-p2p
parent- Fix replacement expressions for manpages, if PYDISTUTILS_AUTOPLIST is set (diff)
Fix build with clang on i386 by disabling inline asm that uses
intel syntax. PR: ports/180595
Notes
Notes: svn path=/head/; revision=330850
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h b/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
new file mode 100644
index 000000000000..bf8afe9faec9
--- /dev/null
+++ b/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
@@ -0,0 +1,11 @@
+--- src/utils/lib/CryptoPP.h.orig
++++ src/utils/lib/CryptoPP.h
+@@ -274,7 +274,7 @@
+ // CodeWarrior defines _MSC_VER
+ #if !defined(CRYPTOPP_DISABLE_X86ASM) && ((defined(_MSC_VER) && !defined(__MWERKS__) && defined(_M_IX86)) || (defined(__GNUC__) && defined(__i386__)))
+ // The x86 version of MacOSX fails when asm is enabled.
+- #if !defined(__i386__) || !defined(__APPLE__)
++ #if !defined(__APPLE__) && !defined(__clang__)
+ #define CRYPTOPP_X86ASM_AVAILABLE
+ #endif
+ #endif