mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
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
This commit is contained in:
parent
9c7f919d6f
commit
c98ec6d001
1 changed files with 4 additions and 1 deletions
|
@ -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) */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue