From e72cfa5b8529a6fe8e674d70dc83df8bcf5e551c Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 21 Oct 2017 20:29:25 +0100 Subject: Add equivalent for missing poll(2) #define Needed in FreeBSD and OpenBSD, and probably Solaris --- src/OS/os.h-OpenBSD | 5 ----- src/src/exim.h | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/OS/os.h-OpenBSD b/src/OS/os.h-OpenBSD index a594d17a7..9da2599c1 100644 --- a/src/OS/os.h-OpenBSD +++ b/src/OS/os.h-OpenBSD @@ -50,9 +50,4 @@ typedef struct __res_state *res_state; #endif #define TIME_T_FMT "%lld" - -#ifndef POLLRDHUP -# define POLLRDHUP (POLLIN | POLLHUP) -#endif - /* End */ diff --git a/src/src/exim.h b/src/src/exim.h index f8dd9a9ba..e12049a9c 100644 --- a/src/src/exim.h +++ b/src/src/exim.h @@ -601,5 +601,11 @@ default to EDQUOT if it exists, otherwise ENOSPC. */ ssize_t readn(int fd, void *buffer, size_t len); +/* Some platforms (FreeBSD, OpenBSD, Solaris) do not seem to define this */ + +#ifndef POLLRDHUP +# define POLLRDHUP (POLLIN | POLLHUP) +#endif + #endif /* End of exim.h */ -- cgit v1.2.3