]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make tor_libc_get_name aware of NetBSD
authorVinícius Zavam <egypcio@googlemail.com>
Sat, 5 Nov 2022 18:41:17 +0000 (18:41 +0000)
committerVinícius Zavam <egypcio@googlemail.com>
Sat, 5 Nov 2022 18:41:17 +0000 (18:41 +0000)
  * __NETBSD_SOURCE was used here to verify if we are running on NetBSD

src/lib/osinfo/libc.c

index 4af8e2f413677eb33860d50966b70ff6ea266b52..9206b99611a0d3b6a0e3f9abd6ba2599df842656 100644 (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__) */