diff options
author | Doug Evans <dje@google.com> | 2009-03-17 18:39:07 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-03-17 18:39:07 +0000 |
commit | fd944dcf8360733363a810773e2cf2d1c4c9b64b (patch) | |
tree | 732a970c3025285efb348315f4b7ddc936cee51b /gdb/amd64-linux-nat.c | |
parent | 5c82fe5ff8b977094f1eed336b93b42b2d94e9b8 (diff) | |
download | gdb-fd944dcf8360733363a810773e2cf2d1c4c9b64b.tar.gz |
* amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
glibc 2.3.2 and earlier.
Diffstat (limited to 'gdb/amd64-linux-nat.c')
-rw-r--r-- | gdb/amd64-linux-nat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index e46bd039781..2a1b690b2d5 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -501,6 +501,15 @@ typedef struct compat_siginfo #define cpt_si_band _sifields._sigpoll._band #define cpt_si_fd _sifields._sigpoll._fd +/* glibc at least up to 2.3.2 doesn't have si_timerid, si_overrun. + In their place is si_timer1,si_timer2. */ +#ifndef si_timerid +#define si_timerid si_timer1 +#endif +#ifndef si_overrun +#define si_overrun si_timer2 +#endif + static void compat_siginfo_from_siginfo (compat_siginfo_t *to, siginfo_t *from) { |