Provide FNONBLOCK for BSD compatiblity

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2016-04-15 13:44:29 +02:00 committed by Corinna Vinschen
parent 3ad9b2fcba
commit 78c9002201
1 changed files with 4 additions and 0 deletions

View File

@ -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 */