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
This commit is contained in:
parent
4bb8a19312
commit
635f8e2ab0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80678
3 changed files with 57 additions and 0 deletions
19
net-p2p/xmule/files/patch-src::ED2KLink.cpp
Normal file
19
net-p2p/xmule/files/patch-src::ED2KLink.cpp
Normal file
|
@ -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 ) {
|
19
net/lmule/files/patch-src::ED2KLink.cpp
Normal file
19
net/lmule/files/patch-src::ED2KLink.cpp
Normal file
|
@ -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 ) {
|
19
net/xmule/files/patch-src::ED2KLink.cpp
Normal file
19
net/xmule/files/patch-src::ED2KLink.cpp
Normal file
|
@ -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 ) {
|
Loading…
Reference in a new issue