diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-21 20:29:25 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-21 20:43:34 +0100 |
commit | e72cfa5b8529a6fe8e674d70dc83df8bcf5e551c (patch) | |
tree | 0efeda15f7a1a1a17574fbb53f9112a240b70501 /src | |
parent | e99a3a6cbb83db9934b97ddac837ab37cb9e4719 (diff) |
Add equivalent for missing poll(2) #define
Needed in FreeBSD and OpenBSD, and probably Solaris
Diffstat (limited to 'src')
-rw-r--r-- | src/OS/os.h-OpenBSD | 5 | ||||
-rw-r--r-- | src/src/exim.h | 6 |
2 files changed, 6 insertions, 5 deletions
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 */ |