]> git.meshlink.io Git - meshlink/blobdiff - lib/utils.h
Allow tinc to handle unknown type addresses from other tinc daemons.
[meshlink] / lib / utils.h
index d8dc4768d609a3b589e1d03149b74fa1d8b17c46..4b0ab3ddea4ce2302be90d1a34be7101833d627c 100644 (file)
@@ -40,6 +40,7 @@ extern void bin2hex(char *src, char *dst, int length);
 
 #ifdef HAVE_MINGW
 extern char *winerror(int);
+#define strerror(x) ((x)>0?strerror(x):winerror(GetLastError()))
 #endif
 
 #endif                                                 /* __TINC_UTILS_H__ */