diff options
Diffstat (limited to 'net/freenet-tools/patches/patch-ab')
-rw-r--r-- | net/freenet-tools/patches/patch-ab | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/freenet-tools/patches/patch-ab b/net/freenet-tools/patches/patch-ab new file mode 100644 index 00000000000..7de9a8f11c9 --- /dev/null +++ b/net/freenet-tools/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2004/10/29 17:06:50 tv Exp $ + +--- ft.h.orig Thu May 20 06:31:46 2004 ++++ ft.h +@@ -44,7 +44,6 @@ + #include <dirent.h> + + #ifdef __CYGWIN__ +-#define timegm(x) cyg_timegm(x) + #define OPEN_RB "rb" + #define OPEN_WB "wb" + #else +@@ -111,8 +110,16 @@ enum { + #define UNKNOWNERROR "UNKNOWN" + #endif + +-#ifdef __CYGWIN__ +-time_t cyg_timegm(struct tm *tm); ++#if defined(__CYGWIN__) || defined(__INTERIX) ++time_t timegm(struct tm *tm); ++#endif ++ ++#ifdef __INTERIX ++#define socklen_t int ++#define strtoull _strtouq ++ ++/* hidden version of strtoull() in libc */ ++u_quad_t _strtouq(const char *, char **, int); + #endif + + #ifdef __cplusplus |