summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinícius Zavam <egypcio@googlemail.com>2022-11-05 20:51:26 +0000
committerVinícius Zavam <egypcio@googlemail.com>2022-11-05 20:51:26 +0000
commitbd64e6bd08255a2488c300b171f4947bbd1a374a (patch)
tree1fb45c0fee43d5dccd096c8d9a26fae3972fe089 /src
parentcc95be8e1735344ad40f7d4420aca63b54f44f2a (diff)
downloadtor-bd64e6bd08255a2488c300b171f4947bbd1a374a.tar.gz
tor-bd64e6bd08255a2488c300b171f4947bbd1a374a.zip
fix: %s/param.sh/param.h
while here also reflect the check for __NETBSD_SOURCE on tor_libc_get_version_str
Diffstat (limited to 'src')
-rw-r--r--src/lib/osinfo/libc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c
index 47f667d564..452fce676b 100644
--- 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)