once NetBSD was presented, return its version

* defined by __NetBSD_Version__ on <sys/param.h> too.
This commit is contained in:
Vinícius Zavam 2022-11-05 18:46:09 +00:00
parent 8a879395ab
commit 2077b880d8
No known key found for this signature in database
GPG key ID: 415C653413B43475

View file

@ -57,6 +57,9 @@ tor_libc_get_version_str(void)
#ifdef __FreeBSD__
return STR(__FreeBSD_version);
#endif
#ifdef __NetBSD_Version__
return STR(__NetBSD_Version__);
#endif
#ifdef OpenBSD
return STR(OpenBSD);
#endif /* defined(__BSD_VISIBLE) */