diff --git a/sys/include/net/af.h b/sys/include/net/af.h index a1fd0b566d..75610eaff3 100644 --- a/sys/include/net/af.h +++ b/sys/include/net/af.h @@ -24,7 +24,10 @@ extern "C" { #endif -enum { +/** + * @brief UNIX address family definitions + */ +typedef enum { AF_UNSPEC = 0, /**< unspecified address family */ #define AF_UNSPEC AF_UNSPEC /**< unspecified address family (as macro) */ AF_UNIX, /**< local to host (pipes, portals) address family. */ @@ -39,7 +42,7 @@ enum { AF_NUMOF, /**< maximum number of address families on this system */ #define AF_NUMOF AF_NUMOF /**< maximum number of address families on this system (as macro) */ #define AF_MAX AF_NUMOF /**< alias for @ref AF_NUMOF */ -}; +} unix_af_t; #ifdef __cplusplus }