mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
fix: we shall not produce warnings compiling tor
This commit is contained in:
parent
64f8490ede
commit
cc95be8e17
@ -46,12 +46,6 @@ tor_libc_get_name(void)
|
||||
const char *
|
||||
tor_libc_get_version_str(void)
|
||||
{
|
||||
#ifdef CHECK_LIBC_VERSION
|
||||
const char *version = gnu_get_libc_version();
|
||||
if (version == NULL)
|
||||
return "N/A";
|
||||
return version;
|
||||
#else /* !defined(CHECK_LIBC_VERSION) */
|
||||
#ifdef __BSD_VISIBLE
|
||||
#include <sys/param.sh>
|
||||
#ifdef __DragonFly_version
|
||||
@ -65,7 +59,14 @@ tor_libc_get_version_str(void)
|
||||
#endif
|
||||
#ifdef OpenBSD
|
||||
return STR(OpenBSD);
|
||||
#endif
|
||||
#endif /* defined(__BSD_VISIBLE) */
|
||||
#ifdef CHECK_LIBC_VERSION
|
||||
const char *version = gnu_get_libc_version();
|
||||
if (version == NULL)
|
||||
return "N/A";
|
||||
return version;
|
||||
#else /* !defined(CHECK_LIBC_VERSION) */
|
||||
return "N/A";
|
||||
#endif /* defined(CHECK_LIBC_VERSION) */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user