From 35074a6ad15d9dec05042913405ab469551d4e59 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Wed, 6 Jan 2016 15:10:15 +0100 Subject: [PATCH] posix socket: align size of sa_family_t with Linux Linux defines `sa_family_t` as `unsigned short int`. In order to be compatible with Linux code, RIOT should define it the same way. --- sys/posix/include/sys/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/posix/include/sys/socket.h b/sys/posix/include/sys/socket.h index 52fcd6d4bb..ecadc5197f 100644 --- a/sys/posix/include/sys/socket.h +++ b/sys/posix/include/sys/socket.h @@ -94,7 +94,7 @@ extern "C" { #define SO_TYPE (15) /**< Socket type. */ /** @} */ -typedef unsigned int sa_family_t; /**< address family type */ +typedef unsigned short sa_family_t; /**< address family type */ /** * @brief Used to define the socket address. -- GitLab