Better error messages under Windows.

This commit is contained in:
Guus Sliepen 2003-08-08 19:39:41 +00:00
parent 6f30995955
commit b0825f36b7
2 changed files with 5 additions and 1 deletions

View 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__ */