fix: %s/param.sh/param.h

while here also reflect the check for __NETBSD_SOURCE on
tor_libc_get_version_str
This commit is contained in:
Vinícius Zavam 2022-11-05 20:51:26 +00:00
parent cc95be8e17
commit bd64e6bd08
No known key found for this signature in database
GPG Key ID: 415C653413B43475

View File

@ -46,8 +46,8 @@ tor_libc_get_name(void)
const char *
tor_libc_get_version_str(void)
{
#ifdef __BSD_VISIBLE
#include <sys/param.sh>
#ifdef __BSD_VISIBLE || __NETBSD_SOURCE
#include <sys/param.h>
#ifdef __DragonFly_version
return STR(__DragonFly_version);
#endif
@ -60,7 +60,7 @@ tor_libc_get_version_str(void)
#ifdef OpenBSD
return STR(OpenBSD);
#endif
#endif /* defined(__BSD_VISIBLE) */
#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
#ifdef CHECK_LIBC_VERSION
const char *version = gnu_get_libc_version();
if (version == NULL)