$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
