Cygwin needs windows.h.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 3 Aug 2003 12:37:55 +0000 (12:37 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 3 Aug 2003 12:37:55 +0000 (12:37 +0000)
lib/utils.c

index 6b3dd23..43abf96 100644 (file)
@@ -80,7 +80,11 @@ void cp_trace()
 }
 #endif
 
-#ifdef HAVE_MINGW
+#if defined(HAVE_MINGW) || defined(HAVE_CYGWIN)
+#ifdef HAVE_CYGWIN
+#include <w32api/windows.h>
+#endif
+
 char *winerror(int err) {
        static char buf[1024];