diff options
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index 7069a7c8e..91f7ba22c 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -387,8 +387,12 @@ int FAST_FUNC xsocket(int domain, int type, int protocol) | |||
387 | /* Hijack vaguely related config option */ | 387 | /* Hijack vaguely related config option */ |
388 | #if ENABLE_VERBOSE_RESOLUTION_ERRORS | 388 | #if ENABLE_VERBOSE_RESOLUTION_ERRORS |
389 | const char *s = "INET"; | 389 | const char *s = "INET"; |
390 | # ifdef AF_PACKET | ||
390 | if (domain == AF_PACKET) s = "PACKET"; | 391 | if (domain == AF_PACKET) s = "PACKET"; |
392 | # endif | ||
393 | # ifdef AF_NETLINK | ||
391 | if (domain == AF_NETLINK) s = "NETLINK"; | 394 | if (domain == AF_NETLINK) s = "NETLINK"; |
395 | # endif | ||
392 | IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";) | 396 | IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";) |
393 | bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol); | 397 | bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol); |
394 | #else | 398 | #else |