From 8a879395abcae7037818f2f6d2478b5b0db4c622 Mon Sep 17 00:00:00 2001 From: Vinícius Zavam Date: Sat, 5 Nov 2022 18:41:17 +0000 Subject: make tor_libc_get_name aware of NetBSD * __NETBSD_SOURCE was used here to verify if we are running on NetBSD --- src/lib/osinfo/libc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c index 4af8e2f413..9206b99611 100644 --- 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__) */ -- cgit v1.2.3-54-g00ecf