diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-05-22 12:25:57 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-22 12:25:57 +0200 |
commit | e476442cf0e84c65565ace545f5b73602b5f0ffc (patch) | |
tree | 02f3e4ecc2d42461d1fcb15e9d724e3d7d88a09d /include/osmocom/core/socket.h | |
parent | 33cb71ac91fb870702dbb71595dba4a554001e3c (diff) |
GSMTAP/socket code: Check for sys/socket.h and conditionally compile
Diffstat (limited to 'include/osmocom/core/socket.h')
-rw-r--r-- | include/osmocom/core/socket.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h index 3ede524b..a3baa9d5 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 @@ 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 */ |