summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-01-13 13:36:03 +0200
committerRich Felker <dalias@aerifal.cx>2014-02-05 15:58:11 -0500
commita0351ee6a7b795808aa20c4b607bc7a0379422ef (patch)
tree4f4d68b96fad80bd40a631b9028d45376676d1cd /include/netdb.h
parent16a3580ef3a27d7f1fb0f76441a973b71a35b527 (diff)
downloadmusl-a0351ee6a7b795808aa20c4b607bc7a0379422ef.tar.gz
musl-a0351ee6a7b795808aa20c4b607bc7a0379422ef.tar.bz2
musl-a0351ee6a7b795808aa20c4b607bc7a0379422ef.tar.xz
musl-a0351ee6a7b795808aa20c4b607bc7a0379422ef.zip
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.
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h1
1 files changed, 1 insertions, 0 deletions
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)