From: Timo Teräs Date: Mon, 13 Jan 2014 11:36:03 +0000 (+0200) Subject: add NO_ADDRESS macro to netdb.h as an alias for NO_DATA X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a0351ee6a7b795808aa20c4b607bc7a0379422ef;hp=16a3580ef3a27d7f1fb0f76441a973b71a35b527;p=musl add NO_ADDRESS macro to netdb.h as an alias for NO_DATA some applications expect it to be defined, despite the standard making it impossible for it to ever be returned as a value distinct from NO_DATA. since these macros are outside the scope of the current standards, no special effort is made to hide NO_ADDRESS under conditions where the others are exposed. --- diff --git a/include/netdb.h b/include/netdb.h index 2dd799b9..dfc70e2b 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -131,6 +131,7 @@ int *__h_errno_location(void); #define TRY_AGAIN 2 #define NO_RECOVERY 3 #define NO_DATA 4 +#define NO_ADDRESS NO_DATA #endif #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)