diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-03-31 07:32:20 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-03-31 07:32:20 +0000 |
commit | 6ebc5b4f9516e389109a83188497dd704446e8ab (patch) | |
tree | 4ab0da7c26870abcd9c9686c1f15d9c0f6a64fff /net/libfreenet/files | |
parent | e0a7dc43dc13b08bbb93f05712afb58c2c80fa69 (diff) | |
download | FreeBSD-ports-6ebc5b4f9516e389109a83188497dd704446e8ab.zip FreeBSD-ports-6ebc5b4f9516e389109a83188497dd704446e8ab.tar.gz |
add libfreenet
Freenet library written in C
Diffstat (limited to 'net/libfreenet/files')
-rw-r--r-- | net/libfreenet/files/patch-client_util.c | 19 | ||||
-rw-r--r-- | net/libfreenet/files/patch-protocol.c | 19 | ||||
-rw-r--r-- | net/libfreenet/files/patch-testclient.c | 10 |
3 files changed, 48 insertions, 0 deletions
diff --git a/net/libfreenet/files/patch-client_util.c b/net/libfreenet/files/patch-client_util.c new file mode 100644 index 0000000..d6a08a6 --- /dev/null +++ b/net/libfreenet/files/patch-client_util.c @@ -0,0 +1,19 @@ +--- client_util.c.orig Wed Mar 28 19:27:38 2001 ++++ client_util.c Sat Mar 31 15:07:59 2001 +@@ -60,13 +60,14 @@ + + int timediff () + { ++ struct tm *tmp; + long t = time(NULL); + + /* We are calling localtime here for its side-effect of setting + the timezone global appropriately. I have no proof that this + even happens on cygwin. Please, just let me die. */ +- localtime(&t); +- return (FN_TIMEZONE / 3600); ++ tmp = localtime(&t); ++ return (tmp->tm_gmtoff / 3600); + } + + diff --git a/net/libfreenet/files/patch-protocol.c b/net/libfreenet/files/patch-protocol.c new file mode 100644 index 0000000..59fed22 --- /dev/null +++ b/net/libfreenet/files/patch-protocol.c @@ -0,0 +1,19 @@ +--- protocol.c.orig Thu Mar 22 13:27:34 2001 ++++ protocol.c Sat Mar 31 15:14:32 2001 +@@ -17,6 +17,8 @@ + */ + #include <stdio.h> + #include <malloc.h> ++#include <sys/types.h> ++#include <netinet/in.h> + #include <sys/socket.h> + #include <netdb.h> + #include <string.h> +@@ -24,7 +26,6 @@ + #include <errno.h> + #include <fcntl.h> + #include <unistd.h> +-#include <sys/types.h> + #include <ctype.h> + #include <time.h> + diff --git a/net/libfreenet/files/patch-testclient.c b/net/libfreenet/files/patch-testclient.c new file mode 100644 index 0000000..08a080b --- /dev/null +++ b/net/libfreenet/files/patch-testclient.c @@ -0,0 +1,10 @@ +--- testclient.c.orig Sat Mar 31 15:17:15 2001 ++++ testclient.c Sat Mar 31 15:17:24 2001 +@@ -20,7 +20,6 @@ + #include <string.h> + #include <time.h> + #include <unistd.h> +-#include <getopt.h> + + #include "protocol.h" + #include "client.h" |