@@ -108,11 +108,11 @@ /*! * @struct of_socket_address_t socket.h ObjFW/socket.h * * @brief A struct which represents a host / port pair for a socket. */ -typedef struct OF_BOXABLE { +struct OF_BOXABLE of_socket_address_t { /* * Even though struct sockaddr contains the family, we need to use our * own family, as we need to support storing an IPv6 address on systems * that don't support IPv6. These may not have AF_INET6 defined and we * can't just define it, as the value is system-dependent and might @@ -123,11 +123,12 @@ struct sockaddr sockaddr; struct sockaddr_in in; struct sockaddr_in6 in6; } sockaddr; socklen_t length; -} of_socket_address_t; +}; +typedef struct of_socket_address_t of_socket_address_t; #ifdef __cplusplus extern "C" { #endif /*!