libroken: Fill in NI_NUMERICSCOPE as 0 if not defined.

This flag has defined by POSIX for years if not decades, but glibc
and Windows apparently still don't have it.

We will use it with getnameinfo, along with all other NI_NUMERICxxx
options, to minimize risk of network leaks with block_dns.
This commit is contained in:
Taylor R Campbell
2024-01-10 02:49:35 +00:00
committed by Nico Williams
parent d73910c588
commit 4d39fe8d04

View File

@@ -251,6 +251,14 @@
#define NI_NUMERICSERV 0x10
#endif
/*
* NI_NUMERICSCOPE is still missing from glibc as of 2024:
* https://sourceware.org/bugzilla/show_bug.cgi?id=14102
*/
#ifndef NI_NUMERICSCOPE
#define NI_NUMERICSCOPE 0
#endif
/*
* constants for getnameinfo
*/