diff options
author | Doug Evans <dje@google.com> | 2009-03-17 18:39:08 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-03-17 18:39:08 +0000 |
commit | 14064aa202f80cd07434295c44268f44944859aa (patch) | |
tree | d1a976d646a0a5e793f23be46e9a10f2e913c349 /gdb/amd64-linux-nat.c | |
parent | f06eadd9d4d894f887509b56ef0986a44ade8770 (diff) | |
download | gdb-14064aa202f80cd07434295c44268f44944859aa.zip gdb-14064aa202f80cd07434295c44268f44944859aa.tar.gz gdb-14064aa202f80cd07434295c44268f44944859aa.tar.bz2 |
* 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 e46bd03..2a1b690 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) { |