aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-01-18 11:59:45 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2016-01-19 07:37:20 -0800
commita6e69c1f1de84549d99792031dd05d5ba70bd8a5 (patch)
tree352ea60e4895daa94cb866d7b1e3de439f42fb83 /gdb/configure
parent34e967a5f3ac5fd0353731a259e358d462823290 (diff)
downloadgdb-a6e69c1f1de84549d99792031dd05d5ba70bd8a5.zip
gdb-a6e69c1f1de84549d99792031dd05d5ba70bd8a5.tar.gz
gdb-a6e69c1f1de84549d99792031dd05d5ba70bd8a5.tar.bz2
Fix detection of "r_fs" and "r_gs" on FreeBSD.
Include <sys/types.h> as a prerequisite for <machine/reg.h> when checking for the r_fs and r_gs members in struct reg. Note that the previous test for <machine/reg.h> already includes <sys/types.h> as a prerequisite. gdb/ChangeLog: * configure.ac: Include <sys/types.h when checking for "r_fs" in "struct reg". * configure: Regenerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/configure b/gdb/configure
index 4abedd3..11f91e3 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12782,7 +12782,8 @@ fi
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
-ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
+ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
+#include <machine/reg.h>
"
if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
@@ -12792,7 +12793,8 @@ _ACEOF
fi
-ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
+ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
+#include <machine/reg.h>
"
if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :