GSMTAP/socket code: Check for sys/socket.h and conditionally compile
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index 3ede524..a3baa9d 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -2,7 +2,8 @@
 #define _OSMOCORE_SOCKET_H
 
 #include <stdint.h>
-#include <sys/socket.h>
+
+struct sockaddr;
 
 int osmo_sock_init(uint16_t family, uint16_t type, uint8_t proto,
 		   const char *host, uint16_t port, int connect0_bind1);
@@ -11,6 +12,6 @@
 		      uint8_t proto, int connect0_bind1);
 
 /* determine if the given address is a local address */
-int osmo_sockaddr_is_local(struct sockaddr *addr, socklen_t addrlen);
+int osmo_sockaddr_is_local(struct sockaddr *addr, unsigned int addrlen);
 
 #endif /* _OSMOCORE_SOCKET_H */