tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit c98ec6d00157c7114d1e09e8da39110140809ab9
parent 9c7f919d6ff71f3c0ec227ab89b017465124055a
Author: Vinícius Zavam <egypcio@googlemail.com>
Date:   Sat,  5 Nov 2022 18:38:04 +0000

return what OpenBSD gives as base system version

  * it also uses sys/param.h to track its version;
  * present that to tor_libc_get_version_str() as libc version;

  while here, we also fix the return of FreeBSD version

  * __FreeBSD_version is the correct var tracking the OSVERSION

Diffstat:
Msrc/lib/osinfo/libc.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c @@ -55,8 +55,11 @@ tor_libc_get_version_str(void) #ifdef __BSD_VISIBLE #include <sys/param.sh> #ifdef __FreeBSD__ - return STR(__FreeBSD__); + return STR(__FreeBSD_version); #endif +#ifdef OpenBSD + return STR(OpenBSD); +#endif /* defined(__BSD_VISIBLE) */ return "N/A"; #endif /* defined(CHECK_LIBC_VERSION) */ }