diff options
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 000000000000..d6a08a6655b4 --- /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 000000000000..59fed2289318 --- /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 000000000000..08a080bc7ce6 --- /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" |