mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
perform proper 'OR' while checking defined vars
* the || is not possible with #ifdef statement; * here the #ifdef turns into '#if defined()'.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user