From 97e0e75ae23ca7ef9f82b40f3e0436716ba25502 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 17 Dec 2012 21:12:24 +0100 Subject: [PATCH] Missing errno code on mingw --- src/std/c_macro.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/std/c_macro.h b/src/std/c_macro.h index 5d4cca3834..ca762addde 100644 --- a/src/std/c_macro.h +++ b/src/std/c_macro.h @@ -57,5 +57,19 @@ /** * }@ */ + +#ifdef _WIN32 +/* missing errno codes on mingw */ +#ifndef ENOTBLK +#define ENOTBLK 15 +#endif +#ifndef ETXTBSY +#define ETXTBSY 26 +#endif +#ifndef ENOBUFS +#define ENOBUFS WSAENOBUFS +#endif +#endif /* _WIN32 */ + #endif /* _C_MACRO_H */