]> git.meshlink.io Git - meshlink/commitdiff
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 6b3dd237ed32616be75310581ef74790749487ac..43abf96ee356034d74462bc9fc3d1ce87c284b1f 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];