From 13226e828c6b7d56c77444afe159c1ccf008d62d Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 20 Nov 2019 13:28:01 +0000 Subject: follow-up to 7c14b80a011e9e99b1cef0bfd96bae364edd5663: use __linux__ instead of redefined LINUX. --- src/transport/tcp_service_legacy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport/tcp_service_legacy.c') diff --git a/src/transport/tcp_service_legacy.c b/src/transport/tcp_service_legacy.c index 54020b642..f207863f9 100644 --- a/src/transport/tcp_service_legacy.c +++ b/src/transport/tcp_service_legacy.c @@ -482,7 +482,7 @@ add_unixpath (struct sockaddr **saddrs, un = GNUNET_new (struct sockaddr_un); un->sun_family = AF_UNIX; GNUNET_strlcpy (un->sun_path, unixpath, sizeof(un->sun_path)); -#ifdef LINUX +#ifdef __linux__ if (GNUNET_YES == abstract) un->sun_path[0] = '\0'; #endif @@ -637,7 +637,7 @@ LEGACY_SERVICE_get_server_addresses ( unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); LOG (GNUNET_ERROR_TYPE_INFO, _ ("Using `%s' instead\n"), unixpath); } -#ifdef LINUX +#ifdef __linux__ abstract = GNUNET_CONFIGURATION_get_value_yesno (cfg, "TESTING", "USE_ABSTRACT_SOCKETS"); -- cgit v1.2.3