tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 8a879395abcae7037818f2f6d2478b5b0db4c622
parent c98ec6d00157c7114d1e09e8da39110140809ab9
Author: Vinícius Zavam <egypcio@googlemail.com>
Date:   Sat,  5 Nov 2022 18:41:17 +0000

make tor_libc_get_name aware of NetBSD

  * __NETBSD_SOURCE was used here to verify if we are running on NetBSD

Diffstat:
Msrc/lib/osinfo/libc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c @@ -31,9 +31,9 @@ const char * tor_libc_get_name(void) { -#ifdef __BSD_VISIBLE +#ifdef __BSD_VISIBLE || __NETBSD_SOURCE return "BSD"; -#endif /* defined(__BSD_VISIBLE) */ +#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */ #ifdef __GLIBC__ return "Glibc"; #else /* !defined(__GLIBC__) */