[newlib-cygwin] Provide FNONBLOCK for BSD compatiblity
Corinna Vinschen
corinna@sourceware.org
Fri Apr 15 12:55:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=78c9002201775c93e1a2fd54ccf464d37c2c767e
commit 78c9002201775c93e1a2fd54ccf464d37c2c767e
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Fri Apr 15 13:44:29 2016 +0200
Provide FNONBLOCK for BSD compatiblity
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diff:
---
newlib/libc/include/sys/_default_fcntl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h
index 3be8f8d..ede90c4 100644
--- a/newlib/libc/include/sys/_default_fcntl.h
+++ b/newlib/libc/include/sys/_default_fcntl.h
@@ -99,6 +99,10 @@ extern "C" {
#endif /* __MISC_VISIBLE */
+#if __BSD_VISIBLE
+#define FNONBLOCK _FNONBLOCK
+#endif /* __BSD_VISIBLE */
+
/* XXX close on exec request; must match UF_EXCLOSE in user.h */
#define FD_CLOEXEC 1 /* posix */
More information about the Newlib-cvs
mailing list