summaryrefslogtreecommitdiff
path: root/net-p2p/xmule/files/patch-src::updownclient.h
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-11 22:29:38 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-11 22:29:38 +0000
commit47a28fa2def4ccacaf5658f79406f422e543e215 (patch)
tree6b1afd04f141e84eee5ab3ce6ea6df438e0463ea /net-p2p/xmule/files/patch-src::updownclient.h
parento After repo copy from ports/net/lmule (this is a fork of lmule): (diff)
o After repo copy from ports/net/lmule (this is a fork of lmule):
update to xmule version 1.4.0 o Special thanks to [1] who helped patching the application for FreeBSD Reviewed by: Lauri Watts <lauri@fruitsalad.org>, Frerich Raabe <frerich.raabe@gmx.de> [1] Repo copy approved by: portmgr (self) Repo copied by: cvs (joe)
Notes
Notes: svn path=/head/; revision=82816
Diffstat (limited to 'net-p2p/xmule/files/patch-src::updownclient.h')
-rw-r--r--net-p2p/xmule/files/patch-src::updownclient.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/xmule/files/patch-src::updownclient.h b/net-p2p/xmule/files/patch-src::updownclient.h
new file mode 100644
index 000000000000..9891c50e1d6b
--- /dev/null
+++ b/net-p2p/xmule/files/patch-src::updownclient.h
@@ -0,0 +1,24 @@
+--- src/updownclient.h.orig Sun May 25 18:27:59 2003
++++ src/updownclient.h Tue May 27 21:14:31 2003
+@@ -26,12 +26,20 @@
+ #include "SafeFile.h"
+ #include "BarShader.h"
+ #include "otherfunctions.h"
++#include <sys/time.h>
+
+ class CPartFile;
+ class CKnownFile;
+ typedef unsigned char byte;
+-extern inline long GetTickCount();
+
++inline long GetTickCount()
++{
++ struct timeval aika;
++ gettimeofday(&aika,NULL);
++ unsigned long secs=aika.tv_sec*1000;
++ secs+=(aika.tv_usec/1000);
++ return secs;
++}
+
+ // uploadstate
+ #define US_UPLOADING 0