GDB: Only build for "unix:" connections if AF_LOCAL is supported.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 28 Oct 2018 19:14:24 +0000 (20:14 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 29 Oct 2018 07:07:32 +0000 (08:07 +0100)
commit98a17ece013cb94cd602496b9efb92b8816b3953
tree76d29d19120d65522515968a16d15a779107c371
parentcad26cec079bf79d078bb92ecc6b7cf1df2e5845
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.
gdb/ChangeLog
gdb/common/netstuff.c
gdb/config.in
gdb/configure
gdb/configure.ac