diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index c035f9fee..f27ecf3dd 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -174,6 +174,18 @@ struct addrinfo { #endif +/* + * constants for inet_ntop + */ + +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif + +#ifndef INET6_ADDRSTRLEN +#define INET6_ADDRSTRLEN 46 +#endif + #ifndef HAVE___ATTRIBUTE__ #define __attribute__(x) #endif