Add 'getthrds' declaration check in configure for AIX
[deliverable/binutils-gdb.git] / gdb / aix-thread.c
index 37b798a43ba61306d714d711865a7c0e892ce19d..c5db262e1f67b3c0d69e230adb0c25d13ab8aad0 100644 (file)
 #include <sched.h>
 #include <sys/pthdebug.h>
 
+#if !HAVE_DECL_GETTHRDS
+extern int getthrds (pid_t, struct thrdsinfo64 *, int, pthdb_tid_t *, int);
+#endif
+
 /* Whether to emit debugging output.  */
 static int debug_aix_thread;
 
@@ -647,10 +651,6 @@ get_signaled_thread (void)
   pthdb_tid_t ktid = 0;
   int result = 0;
 
-  /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file.  */
-  extern int getthrds (pid_t, struct thrdsinfo64 *, 
-                      int, pthdb_tid_t *, int);
-
   while (1)
   {
     if (getthrds (PIDGET (inferior_ptid), &thrinf, 
This page took 0.039299 seconds and 4 git commands to generate.