This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix td_pcb configure test
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 27 Jun 2004 18:41:50 +0200 (CEST)
- Subject: [PATCH] Fix td_pcb configure test
The test didn't work :-(. Fixed by the attached patch.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.in: Include <sys/param.h> for td_pcb test.
* configure: Regenerated.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.156
diff -u -p -r1.156 configure.in
--- configure.in 8 Jun 2004 16:29:30 -0000 1.156
+++ configure.in 27 Jun 2004 16:36:53 -0000
@@ -496,7 +496,8 @@ fi
# See if <sys/proc.h> defines `struct thread' with a td_pcb member.
AC_CACHE_CHECK([for td_pcb in struct thread], gdb_cv_struct_thread_td_pcb,
-[AC_TRY_COMPILE([#include <sys/proc.h>], [struct thread td; td.td_pcb;],
+[AC_TRY_COMPILE([#include <sys/param.h>
+#include <sys/proc.h>], [struct thread td; td.td_pcb;],
gdb_cv_struct_thread_td_pcb=yes, gdb_cv_struct_thread_td_pcb=no)])
if test $gdb_cv_struct_thread_td_pcb = yes; then
AC_DEFINE(HAVE_STRUCT_THREAD_TD_PCB, 1,