make tor_libc_get_name aware of NetBSD

* __NETBSD_SOURCE was used here to verify if we are running on NetBSD
This commit is contained in:
Vinícius Zavam
2022-11-05 18:41:17 +00:00
parent c98ec6d001
commit 8a879395ab
+2 -2
View File
@@ -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__) */