From 78c9002201775c93e1a2fd54ccf464d37c2c767e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 15 Apr 2016 13:44:29 +0200 Subject: [PATCH] Provide FNONBLOCK for BSD compatiblity Signed-off-by: Sebastian Huber --- 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 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 */ -- 2.43.5