* global.h: Add replacement for O_NONBLOCK.

This commit is contained in:
Pavel Roskin 2002-12-16 00:41:06 +00:00
parent 2048c47dfb
commit 5c76f171ac
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-12-15 Pavel Roskin <proski@gnu.org>
* global.h: Add replacement for O_NONBLOCK.
2002-12-11 Pavel Roskin <proski@gnu.org>
* find.c (find_file): Skip entries without data when panelizing.

View File

@ -50,6 +50,17 @@
# define O_BINARY 0
#endif
/* Replacement for O_NONBLOCK */
#ifndef O_NONBLOCK
#ifdef O_NDELAY /* SYSV */
#define O_NONBLOCK O_NDELAY
#else /* BSD */
#define O_NONBLOCK FNDELAY
#endif /* !O_NDELAY */
#endif /* !O_NONBLOCK */
#ifdef HAVE_SYS_TIMEB_H
# include <sys/timeb.h>
#endif