mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +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:
parent
4b23bd8c9c
commit
642e56bdb6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue