From 642e56bdb640150804286d1c60fdae36796bc14b Mon Sep 17 00:00:00 2001 From: Vinícius Zavam Date: Sun, 27 Nov 2022 18:41:09 +0000 Subject: perform proper 'OR' while checking defined vars * the || is not possible with #ifdef statement; * here the #ifdef turns into '#if defined()'. --- src/lib/osinfo/libc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c index 452fce676b..1ca26ff707 100644 --- a/src/lib/osinfo/libc.c +++ b/src/lib/osinfo/libc.c @@ -31,7 +31,7 @@ const char * tor_libc_get_name(void) { -#ifdef __BSD_VISIBLE || __NETBSD_SOURCE +#if defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) return "BSD"; #endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */ #ifdef __GLIBC__ @@ -46,7 +46,7 @@ tor_libc_get_name(void) const char * tor_libc_get_version_str(void) { -#ifdef __BSD_VISIBLE || __NETBSD_SOURCE +#if defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) #include #ifdef __DragonFly_version return STR(__DragonFly_version); -- cgit v1.2.3-54-g00ecf