summaryrefslogtreecommitdiff
path: root/net/freenet-tools/patches/patch-ab
blob: 7de9a8f11c92bd82b20d1cf169ac5430fc89f10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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