[tor-commits] [tor] 01/11: return BSD if tor_libc_get_name sees __BSD_VISIBLE
gitolite role
git at cupani.torproject.org
Mon Nov 28 14:39:34 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 dba3090a682cbb47d60a44f273c186f668e7d9b7
Author: Vinícius Zavam <egypcio at googlemail.com>
AuthorDate: Sat Nov 5 18:17:12 2022 +0000
return BSD if tor_libc_get_name sees __BSD_VISIBLE
* __BSD_VISIBLE is defined by systems like FreeBSD and OpenBSD;
* that also extends to DragonFlyBSD;
* it's used on stdlib.h and ctypes.h on those systems.
---
src/lib/osinfo/libc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c
index f52dea41aa..59a49e5e63 100644
--- a/src/lib/osinfo/libc.c
+++ b/src/lib/osinfo/libc.c
@@ -31,6 +31,9 @@
const char *
tor_libc_get_name(void)
{
+#ifdef __BSD_VISIBLE
+ return "BSD";
+#endif /* defined(__BSD_VISIBLE) */
#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