summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-15 13:44:29 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 14:51:40 +0200
commit78c9002201775c93e1a2fd54ccf464d37c2c767e (patch)
treee08d0c76543f5f7a32c3557a4a63a10d8f8948f6 /newlib/libc/include/sys
parent3ad9b2fcbab86ad58224c91619782fab2f17f126 (diff)
downloadcygnal-78c9002201775c93e1a2fd54ccf464d37c2c767e.tar.gz
cygnal-78c9002201775c93e1a2fd54ccf464d37c2c767e.tar.bz2
cygnal-78c9002201775c93e1a2fd54ccf464d37c2c767e.zip
Provide FNONBLOCK for BSD compatiblity
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/include/sys')
-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 */