sys/un.h: Make sockaddr_un compatible with lwip
sockaddr_un must be cast compatible with sockaddr.
* sys/socket.h.
*/
+#include <tinyara/config.h>
#include <sys/socket.h>
/****************************************************************************
*/
struct sockaddr_un {
+#ifdef CONFIG_NET_LWIP
+ u8_t sun_len;
+ u8_t sun_family; /* AF_UNIX */
+#else
sa_family_t sun_family; /* AF_UNIX */
+#endif
char sun_path[UNIX_PATH_MAX]; /* pathname */
};
