diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-25 19:31:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-25 19:31:53 +0000 |
commit | f774c82b955ce159faa62b9530d3e3fea235c758 (patch) | |
tree | fe1077c972db1db5f1d4cce7655583c37cddf82d /pkgtools/pbulk | |
parent | 88bb36c5a900d5ee98ed5f15584b78e6d021d700 (diff) | |
download | pkgsrc-f774c82b955ce159faa62b9530d3e3fea235c758.tar.gz |
Include sys/poll.h and poll.h directly if they exist.
nbcompat/poll.h conflicts with the system header on Solaris
and is implicitly included by nbcompat.h already, if needed.
Fixes PR 40756.
Diffstat (limited to 'pkgtools/pbulk')
-rw-r--r-- | pkgtools/pbulk/files/pbulk/lib/event.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/event.c b/pkgtools/pbulk/files/pbulk/lib/event.c index 192a0616167..402907a852a 100644 --- a/pkgtools/pbulk/files/pbulk/lib/event.c +++ b/pkgtools/pbulk/files/pbulk/lib/event.c @@ -1,4 +1,4 @@ -/* $NetBSD: event.c,v 1.4 2009/01/31 23:25:38 joerg Exp $ */ +/* $NetBSD: event.c,v 1.5 2009/02/25 19:31:53 joerg Exp $ */ /*- * Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -38,7 +38,12 @@ #ifdef __sun #include <sys/filio.h> #endif -#include <nbcompat/poll.h> +#if HAVE_POLL_H +#include <poll.h> +#endif +#if HAVE_SYS_POLL_H +#include <sys/poll.h> +#endif #include <nbcompat/time.h> #include <nbcompat/stdlib.h> #include <nbcompat/unistd.h> |