mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
should we identify __FreeBSD__, return its version
* we use OSVERSION here (defined by __FreeBSD__); * it's part of the <sys/param.h> include; * that tracks all noteworthy changes made to the base system.
This commit is contained in:
parent
dba3090a68
commit
9c7f919d6f
@ -52,6 +52,11 @@ tor_libc_get_version_str(void)
|
||||
return "N/A";
|
||||
return version;
|
||||
#else /* !defined(CHECK_LIBC_VERSION) */
|
||||
#ifdef __BSD_VISIBLE
|
||||
#include <sys/param.sh>
|
||||
#ifdef __FreeBSD__
|
||||
return STR(__FreeBSD__);
|
||||
#endif
|
||||
return "N/A";
|
||||
#endif /* defined(CHECK_LIBC_VERSION) */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user