summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)