From 9c7f919d6ff71f3c0ec227ab89b017465124055a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vin=C3=ADcius=20Zavam?= Date: Sat, 5 Nov 2022 18:31:46 +0000 Subject: [PATCH] should we identify __FreeBSD__, return its version * we use OSVERSION here (defined by __FreeBSD__); * it's part of the include; * that tracks all noteworthy changes made to the base system. --- src/lib/osinfo/libc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c index 59a49e5e63..19d089026c 100644 --- 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 +#ifdef __FreeBSD__ + return STR(__FreeBSD__); +#endif return "N/A"; #endif /* defined(CHECK_LIBC_VERSION) */ } -- 2.47.3