From: Jeremy Harris Date: Sat, 21 Oct 2017 19:29:25 +0000 (+0100) Subject: Add equivalent for missing poll(2) #define X-Git-Tag: exim-4_90_RC1~18 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/e72cfa5b8529a6fe8e674d70dc83df8bcf5e551c Add equivalent for missing poll(2) #define Needed in FreeBSD and OpenBSD, and probably Solaris --- 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 */