summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/relay.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-09-18 15:11:12 -0500
committerDavid Smith <dsmith@redhat.com>2009-09-18 15:11:12 -0500
commit0d8829d380af5a6fa909a37fb26ba88867e69a81 (patch)
tree4ad188cd9b59375a02c8afc40bba7b46df757f97 /runtime/staprun/relay.c
parent9500f4e4861b057f2335c76e7342aab0c8d9faf4 (diff)
downloadsystemtap-steved-0d8829d380af5a6fa909a37fb26ba88867e69a81.tar.gz
systemtap-steved-0d8829d380af5a6fa909a37fb26ba88867e69a81.tar.xz
systemtap-steved-0d8829d380af5a6fa909a37fb26ba88867e69a81.zip
Fixed relay_old.c by providing ppoll().
* runtime/staprun/staprun.h: Put ppoll() declaration here (so that relay_old.c can use it). * runtime/staprun/relay.c (ppoll): Made ppoll() non-static so that relay_old.c can use it.
Diffstat (limited to 'runtime/staprun/relay.c')
-rw-r--r--runtime/staprun/relay.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c
index 0c009235..59d7ac9a 100644
--- a/runtime/staprun/relay.c
+++ b/runtime/staprun/relay.c
@@ -22,16 +22,9 @@ static time_t *time_backlog[NR_CPUS];
static int backlog_order=0;
#define BACKLOG_MASK ((1 << backlog_order) - 1)
-/*
- * ppoll exists in glibc >= 2.4
- */
-#if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 4))
-#define NEED_PPOLL
-#endif
-
#ifdef NEED_PPOLL
-static int ppoll(struct pollfd *fds, nfds_t nfds,
- const struct timespec *timeout, const sigset_t *sigmask)
+int ppoll(struct pollfd *fds, nfds_t nfds,
+ const struct timespec *timeout, const sigset_t *sigmask)
{
sigset_t origmask;
int ready;