diff options
author | John Darrington <john@darrington.wattle.id.au> | 2018-10-28 20:14:24 +0100 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2018-10-29 08:07:32 +0100 |
commit | 98a17ece013cb94cd602496b9efb92b8816b3953 (patch) | |
tree | 76d29d19120d65522515968a16d15a779107c371 /gdb/configure | |
parent | cad26cec079bf79d078bb92ecc6b7cf1df2e5845 (diff) | |
download | gdb-98a17ece013cb94cd602496b9efb92b8816b3953.zip gdb-98a17ece013cb94cd602496b9efb92b8816b3953.tar.gz gdb-98a17ece013cb94cd602496b9efb92b8816b3953.tar.bz2 |
GDB: Only build for "unix:" connections if AF_LOCAL is supported.
Commit f19c7ff839d7a32ebb48482ae7d318fb46ca823d added a new member to the
prefixes array which included a use of the symbol AF_LOCAL. Unfortunately,
not all systems declare this symbol. This change only compiles the "unix:"
member if the system knows about AF_LOCAL.
gdb/ChangeLog:
* configure.ac: New test HAVE_AF_LOCAL
* common/netstuff.c (parse_connection_spec) [prefixes]: Only compile "unix:"
if HAVE_AF_LOCAL is true.
* configure: regenerate.
* config.in: regenerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure index 3652455..a2e7f02 100755 --- a/gdb/configure +++ b/gdb/configure @@ -13997,6 +13997,27 @@ _ACEOF fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <sys/socket.h> + +int +main () +{ +int x = AF_LOCAL + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_AF_LOCAL 1" >>confdefs.h + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "$cross_compiling" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 $as_echo_n "checking whether setpgrp takes no argument... " >&6; } |