tor

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

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

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.

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

diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c @@ -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) */ }