summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net.c b/net.c
index 85e0cc0..0c123e7 100644
--- a/net.c
+++ b/net.c
@@ -219,12 +219,18 @@ static struct xlat socktypes[] = {
{ 0, NULL },
};
static struct xlat socketlayers[] = {
+#if defined(SOL_IP)
{ SOL_IP, "SOL_IP" },
+#endif
#if defined(SOL_ICMP)
{ SOL_ICMP, "SOL_ICMP" },
#endif
+#if defined(SOL_TCP)
{ SOL_TCP, "SOL_TCP" },
+#endif
+#if defined(SOL_UDP)
{ SOL_UDP, "SOL_UDP" },
+#endif
#if defined(SOL_IPV6)
{ SOL_IPV6, "SOL_IPV6" },
#endif