[tor-commits] [tor] 04/11: make tor_libc_get_name aware of NetBSD
gitolite role
git at cupani.torproject.org
Mon Nov 28 14:39:37 UTC 2022
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main
in repository tor.
commit 8a879395abcae7037818f2f6d2478b5b0db4c622
Author: Vinícius Zavam <egypcio at googlemail.com>
AuthorDate: Sat Nov 5 18:41:17 2022 +0000
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(-)
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__) */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list