From bd64e6bd08255a2488c300b171f4947bbd1a374a Mon Sep 17 00:00:00 2001 From: Vinícius Zavam Date: Sat, 5 Nov 2022 20:51:26 +0000 Subject: fix: %s/param.sh/param.h while here also reflect the check for __NETBSD_SOURCE on tor_libc_get_version_str --- src/lib/osinfo/libc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') 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 +#ifdef __BSD_VISIBLE || __NETBSD_SOURCE +#include #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) -- cgit v1.2.3-54-g00ecf