This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 18/18] Provide FNONBLOCK for BSD compatiblity
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: devel at rtems dot org, Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Thu, 14 Apr 2016 13:54:47 +0200
- Subject: [PATCH 18/18] Provide FNONBLOCK for BSD compatiblity
- Authentication-results: sourceware.org; auth=none
- References: <1460634887-4420-1-git-send-email-sebastian dot huber at embedded-brains dot de>
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
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 */
--
1.8.4.5