aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c
index 43c8b3654..df9eb63f7 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -245,6 +245,7 @@ void openAInterface(int fd, struct sockaddr *addr)
} else {
const char *hostname;
switch (addr->sa_family) {
+#ifdef HAVE_TCP
case AF_INET:
hostname = (const char *)inet_ntoa(((struct sockaddr_in *)
addr)->sin_addr);
@@ -267,9 +268,12 @@ void openAInterface(int fd, struct sockaddr *addr)
}
break;
#endif
+#endif /* HAVE_TCP */
+#ifdef HAVE_UN
case AF_UNIX:
hostname = "local connection";
break;
+#endif /* HAVE_UN */
default:
hostname = "unknown";
}