diff options
author | VinÃcius Zavam <egypcio@googlemail.com> | 2022-11-27 18:41:09 +0000 |
---|---|---|
committer | VinÃcius Zavam <egypcio@googlemail.com> | 2022-11-27 18:41:09 +0000 |
commit | 642e56bdb640150804286d1c60fdae36796bc14b (patch) | |
tree | 2b49cb6d7c56bf98dc8e888eced6138d45bb6c7e /src/lib/osinfo | |
parent | 4b23bd8c9c3d386c45a0e9406e8a926a47b4992c (diff) | |
download | tor-642e56bdb640150804286d1c60fdae36796bc14b.tar.gz tor-642e56bdb640150804286d1c60fdae36796bc14b.zip |
perform proper 'OR' while checking defined vars
* the || is not possible with #ifdef statement;
* here the #ifdef turns into '#if defined()'.
Diffstat (limited to 'src/lib/osinfo')
-rw-r--r-- | src/lib/osinfo/libc.c | 4 |
1 files 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 <sys/param.h> #ifdef __DragonFly_version return STR(__DragonFly_version); |