aboutsummaryrefslogtreecommitdiffstats
path: root/net/hlmaster
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-08-03 19:55:02 +0800
committerarved <arved@FreeBSD.org>2007-08-03 19:55:02 +0800
commit10668cb514e6cad7941d7b4bd89033b9c751b18b (patch)
tree4e82dadbcc8d4530de241e465ee16379d957e731 /net/hlmaster
parent55d69ac114908d0916e2081863a9237063dd1f5d (diff)
downloadfreebsd-ports-gnome-10668cb514e6cad7941d7b4bd89033b9c751b18b.tar.gz
freebsd-ports-gnome-10668cb514e6cad7941d7b4bd89033b9c751b18b.tar.zst
freebsd-ports-gnome-10668cb514e6cad7941d7b4bd89033b9c751b18b.zip
Fix build on 64bit platforms
Diffstat (limited to 'net/hlmaster')
-rw-r--r--net/hlmaster/files/patch-HLServerList.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/hlmaster/files/patch-HLServerList.cpp b/net/hlmaster/files/patch-HLServerList.cpp
new file mode 100644
index 000000000000..2a652ccc7076
--- /dev/null
+++ b/net/hlmaster/files/patch-HLServerList.cpp
@@ -0,0 +1,20 @@
+--- src/HLServerList.cpp.orig 2007-08-03 13:52:50.000000000 +0200
++++ src/HLServerList.cpp 2007-08-03 13:53:27.000000000 +0200
+@@ -73,7 +73,7 @@
+ m_nSkipRequests = 0;
+
+ // initialize challenge number (should be random)
+- m_nChallengeSeed = (int) &m_pHeadDummyItem;
++ m_nChallengeSeed = (intptr_t) &m_pHeadDummyItem;
+ }
+
+
+@@ -604,7 +604,7 @@
+ if(pItem != NULL)
+ {
+ // get a fresh, random id
+- pItem->m_nChallengeId = GetRandomChallenge((int)&pItem, (int)nTimestamp);
++ pItem->m_nChallengeId = GetRandomChallenge((intptr_t)&pItem, (int)nTimestamp);
+ }
+ }
+