[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor] 05/11: once NetBSD was presented, return its version
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main
in repository tor.
commit 2077b880d80bb2853e6e505bc02a8637afac57fe
Author: Vinícius Zavam <egypcio@xxxxxxxxxxxxxx>
AuthorDate: Sat Nov 5 18:46:09 2022 +0000
once NetBSD was presented, return its version
* defined by __NetBSD_Version__ on <sys/param.h> too.
---
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 9206b99611..195bd528ba 100644
--- a/src/lib/osinfo/libc.c
+++ b/src/lib/osinfo/libc.c
@@ -57,6 +57,9 @@ tor_libc_get_version_str(void)
#ifdef __FreeBSD__
return STR(__FreeBSD_version);
#endif
+#ifdef __NetBSD_Version__
+ return STR(__NetBSD_Version__);
+#endif
#ifdef OpenBSD
return STR(OpenBSD);
#endif /* defined(__BSD_VISIBLE) */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits