summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-04 17:15:26 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-04 17:15:26 +0200
commit834551d2469d72d2192d519e00525114e7d7a457 (patch)
tree71fa592812a8a414931bafcaedb7c2a7f1a1a86f /rpmio
parent554f3f0cfb10cc2494f4a232646dc8bdda7ea962 (diff)
downloadrpm-834551d2469d72d2192d519e00525114e7d7a457.tar.gz
rpm-834551d2469d72d2192d519e00525114e7d7a457.tar.bz2
rpm-834551d2469d72d2192d519e00525114e7d7a457.zip
Clean up poll() vs select() tests
- move the includes out of system.h, not commonly needed - <poll.h> is conditional as we actually provide a fallback through select(), but for <sys/select.h> missing there's no fallback so doesn't make much sense to test for (and both poll.h and sys/select.h are posix anyway...)
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 6473d5577..6adb12cd1 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -5,6 +5,12 @@
#include "system.h"
#include <stdarg.h>
+#if defined(HAVE_POLL_H)
+#include <poll.h>
+#else
+#include <sys/select.h>
+#endif
+
#if HAVE_LIBIO_H && defined(_G_IO_IO_FILE_VERSION)
#define _USE_LIBIO 1
#endif