about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/test-ifaddrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inet/test-ifaddrs.c b/inet/test-ifaddrs.c
index 185859e323..7efca25337 100644
--- a/inet/test-ifaddrs.c
+++ b/inet/test-ifaddrs.c
@@ -48,8 +48,10 @@ addr_string (struct sockaddr *sa, char *buf, size_t size)
     case AF_UNSPEC:
       return "---";
 
+#ifdef AF_PACKET
     case AF_PACKET:
       return "<packet>";
+#endif
 
     default:
       ++failures;