(addr_string): Surround AF_PACKET case with #ifdef AF_PACKET.
authordrepper <drepper>
Tue, 1 Jun 2004 18:38:26 +0000 (18:38 +0000)
committerdrepper <drepper>
Tue, 1 Jun 2004 18:38:26 +0000 (18:38 +0000)
inet/test-ifaddrs.c

index 185859e..7efca25 100644 (file)
@@ -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;