This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit bd64e6bd08255a2488c300b171f4947bbd1a374a Author: VinÃcius Zavam egypcio@googlemail.com AuthorDate: Sat Nov 5 20:51:26 2022 +0000
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(-)
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)