diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index 331c08f6a..f1e5ed862 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -172,7 +172,7 @@ #define EAI_NOERROR 0 /* no error */ #endif -#ifndef EAI_ADDRFAMILY +#ifndef EAI_NONAME #define EAI_ADDRFAMILY 1 /* address family for nodename not supported */ #define EAI_AGAIN 2 /* temporary failure in name resolution */ @@ -186,7 +186,7 @@ #define EAI_SOCKTYPE 10 /* ai_socktype not supported */ #define EAI_SYSTEM 11 /* system error returned in errno */ -#endif /* EAI_ADDRFAMILY */ +#endif /* EAI_NONAME */ /* flags for getaddrinfo() */