aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index a1d0699..f5094c5 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -47,6 +47,16 @@ AC_C_CONST
AC_CHECK_FUNCS(setpgid sbrk)
+# If we are configured native on Linux, work around problems with sys/procfs.h
+if test "${target}" = "${host}"; then
+ case "${host}" in
+ i[3456]86-*-linux*)
+ AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,"2")
+ AC_DEFINE(sys_quotactl)
+ ;;
+ esac
+fi
+
AC_MSG_CHECKING([for gregset_t type])
AC_CACHE_VAL(gdb_cv_have_gregset_t,
[AC_TRY_LINK([#include <sys/procfs.h>],[gregset_t *gregsetp = 0],