Missing errno code on mingw

This commit is contained in:
Olivier Goffart 2012-12-17 21:12:24 +01:00
parent 6f1e70aae6
commit 97e0e75ae2

View file

@ -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 */ #endif /* _C_MACRO_H */