summaryrefslogtreecommitdiff
path: root/gdb/config.in
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-03-17 13:19:07 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-03-17 13:19:07 +0000
commit8cf9d7bc2daf04b1f2c826325a2dd45a12d34fe6 (patch)
treee9ead428d22ed3bef26c893ae965a09b84007b3a /gdb/config.in
parentf240035c535706a46f27375e92907dea172d34ec (diff)
downloadgdb-8cf9d7bc2daf04b1f2c826325a2dd45a12d34fe6.tar.gz
Add 'getthrds' declaration check in configure for AIX
On newer versions of AIX (6.x and later), this function is actually declared in procinfo.h, thus causing a compilation warning when we re-declare it ourselves. This patch adds a configure check for that function allowing us to declare the function only if the declaration isn't already present in one of procinfo system header. gdb/ChangeLog: PR gdb/12116: * configure.ac: Add getthrds declaration check. * configure, config.in: Regenerate. * aix-thread.c (getthrds): Declare only if not already declared in procinfo.h. More declaration out of get_signaled_thread to global scope.
Diffstat (limited to 'gdb/config.in')
-rw-r--r--gdb/config.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/config.in b/gdb/config.in
index ccceabf96c9..01ba750ebda 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -118,6 +118,10 @@
*/
#undef HAVE_DECL_GETOPT
+/* Define to 1 if you have the declaration of `getthrds', and to 0 if you
+ don't. */
+#undef HAVE_DECL_GETTHRDS
+
/* Define to 1 if you have the declaration of `malloc', and to 0 if you don't.
*/
#undef HAVE_DECL_MALLOC