#define _KMEMUSER so that the struct lwp test works.

This commit is contained in:
christos 2011-09-25 20:26:04 +00:00
parent b5a43e29a1
commit 5ecf4f1c7e
2 changed files with 2 additions and 0 deletions

View File

@ -13009,6 +13009,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/param.h>
#define _KMEMUSER
#include <sys/lwp.h>
int
main ()

View File

@ -1137,6 +1137,7 @@ AC_CHECK_MEMBERS([struct thread.td_pcb], [], [],
# See if <sys/lwp.h> defines `struct lwp`.
AC_CACHE_CHECK([for struct lwp], gdb_cv_struct_lwp,
[AC_TRY_COMPILE([#include <sys/param.h>
#define _KMEMUSER
#include <sys/lwp.h>], [struct lwp l;],
gdb_cv_struct_lwp=yes, gdb_cv_struct_lwp=no)])
if test $gdb_cv_struct_lwp = yes; then