From 1348e3ff59552fef1dca022dffb19f56bf70093e Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 1 Sep 2008 17:56:05 +0000 Subject: Fix build on FreeBSD/i386 8-CURRENT. (7.0 building with GCC 4.2) --- security/pgp6/files/patch-aq | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'security/pgp6/files/patch-aq') diff --git a/security/pgp6/files/patch-aq b/security/pgp6/files/patch-aq index 693baa04b11c..ab27c1c51609 100644 --- a/security/pgp6/files/patch-aq +++ b/security/pgp6/files/patch-aq @@ -1,15 +1,11 @@ -*** libs/network/ldaplib/include/ldap.h 2000/01/26 03:10:31 1.1.1.1 ---- libs/network/ldaplib/include/ldap.h 2000/01/26 03:12:53 1.1.1.2 -*************** -*** 90,95 **** ---- 90,99 ---- - #define GetThreadID pthread_self - #endif - -+ #ifdef __FreeBSD__ -+ #define GetThreadID pthread_self -+ #endif -+ - #if PGP_MACINTOSH - #define Debug( level, fmt, arg1, arg2, arg3 ) {} /* Nothing */ - #else +--- libs/network/ldaplib/include/ldap.h.orig 1999-08-04 11:35:42.000000000 -0700 ++++ libs/network/ldaplib/include/ldap.h 2008-08-31 00:47:21.000000000 -0700 +@@ -86,7 +86,7 @@ extern __declspec(dllimport) unsigned lo + #define GetThreadID GetCurrentThreadId + #elif PGP_UNIX_SOLARIS + #define GetThreadID thr_self +-#elif PGP_UNIX_LINUX || PGP_UNIX_AIX || PGP_UNIX_HPUX ++#elif PGP_UNIX_LINUX || PGP_UNIX_AIX || PGP_UNIX_HPUX || defined(__FreeBSD__) + /* This is for all pthreads systems, including Linux and AIX. */ + #define GetThreadID pthread_self + #endif -- cgit v1.2.3