diff options
author | Michael Chastain <mec@google.com> | 2003-02-26 17:24:12 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-02-26 17:24:12 +0000 |
commit | 18972eea777ff3b1cfe54141862e8ce3368ab8f4 (patch) | |
tree | 0edc784421c02c1ea2f535eb5ee661a9f7e5470e /gdb/gdb_thread_db.h | |
parent | bb6317d347dc460b2515e927648edc54d1d2bbe1 (diff) | |
download | gdb-18972eea777ff3b1cfe54141862e8ce3368ab8f4.zip gdb-18972eea777ff3b1cfe54141862e8ce3368ab8f4.tar.gz gdb-18972eea777ff3b1cfe54141862e8ce3368ab8f4.tar.bz2 |
2003-02-26 Michael Chastain <mec@shout.net>
Close PR build/660.
* PROBLEMS (i[3456]86-*-linux*): Note explicit error message
for old libc5/glibc.
* gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
Diffstat (limited to 'gdb/gdb_thread_db.h')
-rw-r--r-- | gdb/gdb_thread_db.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdb_thread_db.h b/gdb/gdb_thread_db.h index c47c424..81dd0a0 100644 --- a/gdb/gdb_thread_db.h +++ b/gdb/gdb_thread_db.h @@ -199,6 +199,16 @@ typedef struct td_notify } u; } td_notify_t; +/* Some people still have libc5 or old glibc with no uintptr_t. + They lose. glibc 2.1.3 was released on 2000-02-25, and it has + uintptr_t, so it's reasonable to force these people to upgrade. */ + +#ifndef HAVE_UINTPTR_T +#error No uintptr_t available; your C library is too old. +/* Inhibit further compilation errors after this error. */ +#define uintptr_t void * +#endif + /* Structure used to report event. */ typedef struct td_event_msg { |