From 5c76f171ac1bbf6861634ecd0bacf27b4ff0e094 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 16 Dec 2002 00:41:06 +0000 Subject: [PATCH] * global.h: Add replacement for O_NONBLOCK. --- src/ChangeLog | 4 ++++ src/global.h | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index d7623ceaf..f29188322 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-12-15 Pavel Roskin + + * global.h: Add replacement for O_NONBLOCK. + 2002-12-11 Pavel Roskin * find.c (find_file): Skip entries without data when panelizing. diff --git a/src/global.h b/src/global.h index c51fab24e..d9d8219fd 100644 --- a/src/global.h +++ b/src/global.h @@ -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 #endif