diff options
author | lioux <lioux@FreeBSD.org> | 2003-05-12 00:48:58 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-05-12 00:48:58 +0800 |
commit | f2c23dc2274dc7d2c98e7994d78fd52cf7011d8a (patch) | |
tree | fd31d4e8662ac982726a39b21fa2adb9d130ad98 /net/xmule | |
parent | cfe8279353a52db327236b42b3023fa3c4473653 (diff) | |
download | freebsd-ports-gnome-f2c23dc2274dc7d2c98e7994d78fd52cf7011d8a.tar.gz freebsd-ports-gnome-f2c23dc2274dc7d2c98e7994d78fd52cf7011d8a.tar.zst freebsd-ports-gnome-f2c23dc2274dc7d2c98e7994d78fd52cf7011d8a.zip |
Comment out code when building in 5.x FreeBSD branch when using gcc
3.x. This code segment does not work with gcc 3.x. Is is responsible
for a sanity check which will be improved in an upcoming LMule
release.
Obtained from: LMule Forums
Diffstat (limited to 'net/xmule')
-rw-r--r-- | net/xmule/files/patch-src::ED2KLink.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/xmule/files/patch-src::ED2KLink.cpp b/net/xmule/files/patch-src::ED2KLink.cpp new file mode 100644 index 000000000000..09e43be239b2 --- /dev/null +++ b/net/xmule/files/patch-src::ED2KLink.cpp @@ -0,0 +1,19 @@ +--- src/ED2KLink.cpp.orig Sun May 11 11:53:58 2003 ++++ src/ED2KLink.cpp Sun May 11 11:57:00 2003 +@@ -216,6 +216,8 @@ + pEnd = pCh; + while( *pEnd ) pEnd++; // make pEnd point to the terminating NULL + bAllowSources=true; ++// This code segment does not work with gcc 3.x. At least, under FreeBSD. ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500035 + // if there's an expiration date... + if( *pCh == _T('@') && (pEnd-pCh) > 7 ) + { +@@ -230,6 +232,7 @@ + bAllowSources = ( expirationDate.Set(nYear,(wxDateTime::Month)nMonth,nDay,0,0,0,0) == 0l); + if (bAllowSources) bAllowSources=(wxDateTime::UNow() < expirationDate); + } ++#endif + + // increment pCh to point to the first "ip:port" and check for sources + if ( bAllowSources && ++pCh < pEnd ) { |