summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/osinfo/libc.c5
1 files changed, 5 insertions, 0 deletions
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 <sys/param.sh>
+#ifdef __FreeBSD__
+ return STR(__FreeBSD__);
+#endif
return "N/A";
#endif /* defined(CHECK_LIBC_VERSION) */
}