From e476442cf0e84c65565ace545f5b73602b5f0ffc Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 22 May 2011 12:25:57 +0200 Subject: GSMTAP/socket code: Check for sys/socket.h and conditionally compile --- include/osmocom/core/socket.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 -#include + +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 @@ int osmo_sock_init_sa(struct sockaddr *ss, uint16_t type, 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 */ -- cgit v1.2.3-55-g7522