aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r--libbb/xfuncs_printf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index 3e189c2d1..31a6d8e3c 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -401,8 +401,12 @@ int FAST_FUNC xsocket(int domain, int type, int protocol)
401 /* Hijack vaguely related config option */ 401 /* Hijack vaguely related config option */
402#if ENABLE_VERBOSE_RESOLUTION_ERRORS 402#if ENABLE_VERBOSE_RESOLUTION_ERRORS
403 const char *s = "INET"; 403 const char *s = "INET";
404# ifdef AF_PACKET
404 if (domain == AF_PACKET) s = "PACKET"; 405 if (domain == AF_PACKET) s = "PACKET";
406# endif
407# ifdef AF_NETLINK
405 if (domain == AF_NETLINK) s = "NETLINK"; 408 if (domain == AF_NETLINK) s = "NETLINK";
409# endif
406IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";) 410IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";)
407 bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol); 411 bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol);
408#else 412#else