summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-07-28 10:05:41 +0000
committerEd Schouten <ed@FreeBSD.org>2016-07-28 10:05:41 +0000
commitb4a395a41ba6f5f888c20c07de2334d23bc89726 (patch)
tree0de1fff14527d60d1616aa9045614919b111e7dc /include/netdb.h
parent822b22a9bf21c61d772133805ffc911bb6cb974e (diff)
downloadsrc-test2-b4a395a41ba6f5f888c20c07de2334d23bc89726.tar.gz
src-test2-b4a395a41ba6f5f888c20c07de2334d23bc89726.zip
Add NI_NUMERICSCOPE.
POSIX also declares NI_NUMERICSCOPE, which makes getnameinfo() return a numerical scope identifier. The interesting thing is that support for this is already present in code, but #ifdef disabled. Expose this functionality by placing a definition for it in <netdb.h>. While there, remove references to NI_WITHSCOPEID, as that got removed 11 years ago.
Notes
Notes: svn path=/head/; revision=303428
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 0d9cb4e6d872..2da7755decae 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -214,9 +214,7 @@ struct addrinfo {
#define NI_NAMEREQD 0x00000004
#define NI_NUMERICSERV 0x00000008
#define NI_DGRAM 0x00000010
-#if 0 /* obsolete */
-#define NI_WITHSCOPEID 0x00000020
-#endif
+#define NI_NUMERICSCOPE 0x00000020
/*
* Scope delimit character