commit bd64e6bd08255a2488c300b171f4947bbd1a374a
parent cc95be8e1735344ad40f7d4420aca63b54f44f2a
Author: VinÃcius Zavam <egypcio@googlemail.com>
Date: Sat, 5 Nov 2022 20:51:26 +0000
fix: %s/param.sh/param.h
while here also reflect the check for __NETBSD_SOURCE on
tor_libc_get_version_str
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c
@@ -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)