projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa9c007
)
Cygwin needs windows.h.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Aug 2003 12:37:55 +0000
(12:37 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Aug 2003 12:37:55 +0000
(12:37 +0000)
lib/utils.c
patch
|
blob
|
history
diff --git
a/lib/utils.c
b/lib/utils.c
index 6b3dd237ed32616be75310581ef74790749487ac..43abf96ee356034d74462bc9fc3d1ce87c284b1f 100644
(file)
--- a/
lib/utils.c
+++ b/
lib/utils.c
@@
-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];