Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-15 14:44:29 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 15:51:40 +0300
commit78c9002201775c93e1a2fd54ccf464d37c2c767e (patch)
treee08d0c76543f5f7a32c3557a4a63a10d8f8948f6 /newlib
parent3ad9b2fcbab86ad58224c91619782fab2f17f126 (diff)
Provide FNONBLOCK for BSD compatiblity
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/_default_fcntl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h
index 3be8f8d1c..ede90c4bc 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 */