summaryrefslogtreecommitdiff
path: root/src/lib/osinfo/libc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/osinfo/libc.c')
-rw-r--r--src/lib/osinfo/libc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c
index 4af8e2f413..9206b99611 100644
--- a/src/lib/osinfo/libc.c
+++ b/src/lib/osinfo/libc.c
@@ -31,9 +31,9 @@
const char *
tor_libc_get_name(void)
{
-#ifdef __BSD_VISIBLE
+#ifdef __BSD_VISIBLE || __NETBSD_SOURCE
return "BSD";
-#endif /* defined(__BSD_VISIBLE) */
+#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
#ifdef __GLIBC__
return "Glibc";
#else /* !defined(__GLIBC__) */