aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/netstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/netstuff.c')
-rw-r--r--gdb/common/netstuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/common/netstuff.c b/gdb/common/netstuff.c
index 11182c1..56bcdfc 100644
--- a/gdb/common/netstuff.c
+++ b/gdb/common/netstuff.c
@@ -145,7 +145,9 @@ parse_connection_spec (const char *spec, struct addrinfo *hint)
{ "tcp4:", AF_INET, SOCK_STREAM },
{ "udp6:", AF_INET6, SOCK_DGRAM },
{ "tcp6:", AF_INET6, SOCK_STREAM },
+#if HAVE_AF_LOCAL
{ "unix:", AF_LOCAL, SOCK_STREAM },
+#endif
};
for (const host_prefix prefix : prefixes)