diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-01-18 11:59:45 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-01-19 07:37:20 -0800 |
commit | a6e69c1f1de84549d99792031dd05d5ba70bd8a5 (patch) | |
tree | 352ea60e4895daa94cb866d7b1e3de439f42fb83 /gdb/configure.ac | |
parent | 34e967a5f3ac5fd0353731a259e358d462823290 (diff) | |
download | gdb-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.ac')
-rw-r--r-- | gdb/configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index e2a7e68..8f9486e 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1448,7 +1448,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_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [], - [#include <machine/reg.h>]) + [#include <sys/types.h> +#include <machine/reg.h>]) # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers. # Older amd64 Linux's don't have the fs_base and gs_base members of |