diff options
author | David Smith <dsmith@redhat.com> | 2009-09-18 15:11:12 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-09-18 15:11:12 -0500 |
commit | 0d8829d380af5a6fa909a37fb26ba88867e69a81 (patch) | |
tree | 4ad188cd9b59375a02c8afc40bba7b46df757f97 /runtime/staprun/staprun.h | |
parent | 9500f4e4861b057f2335c76e7342aab0c8d9faf4 (diff) | |
download | systemtap-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/staprun.h')
-rw-r--r-- | runtime/staprun/staprun.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index 1dcfabbe..f9f01003 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -186,3 +186,13 @@ extern int out_fd[NR_CPUS]; /* relay_old uses these. Set in ctl.c */ extern unsigned subbuf_size; extern unsigned n_subbufs; + +/* + * ppoll exists in glibc >= 2.4 + */ +#if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 4)) +#define NEED_PPOLL + +extern int ppoll(struct pollfd *fds, nfds_t nfds, + const struct timespec *timeout, const sigset_t *sigmask); +#endif |