aboutsummaryrefslogtreecommitdiff
path: root/src/transport/tcp_service_legacy.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-20 13:28:01 +0000
committerng0 <ng0@n0.is>2019-11-20 13:28:01 +0000
commit13226e828c6b7d56c77444afe159c1ccf008d62d (patch)
tree012f078ef372530f02e2ff04e7b8e2cd0149c9e4 /src/transport/tcp_service_legacy.c
parent522a4b35a04b2bc8f50b25db8b9a30ef4ab9d9e2 (diff)
downloadgnunet-13226e828c6b7d56c77444afe159c1ccf008d62d.tar.gz
gnunet-13226e828c6b7d56c77444afe159c1ccf008d62d.zip
follow-up to 7c14b80a011e9e99b1cef0bfd96bae364edd5663:
use __linux__ instead of redefined LINUX.
Diffstat (limited to 'src/transport/tcp_service_legacy.c')
-rw-r--r--src/transport/tcp_service_legacy.c4
1 files changed, 2 insertions, 2 deletions
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,
482 un = GNUNET_new (struct sockaddr_un); 482 un = GNUNET_new (struct sockaddr_un);
483 un->sun_family = AF_UNIX; 483 un->sun_family = AF_UNIX;
484 GNUNET_strlcpy (un->sun_path, unixpath, sizeof(un->sun_path)); 484 GNUNET_strlcpy (un->sun_path, unixpath, sizeof(un->sun_path));
485#ifdef LINUX 485#ifdef __linux__
486 if (GNUNET_YES == abstract) 486 if (GNUNET_YES == abstract)
487 un->sun_path[0] = '\0'; 487 un->sun_path[0] = '\0';
488#endif 488#endif
@@ -637,7 +637,7 @@ LEGACY_SERVICE_get_server_addresses (
637 unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); 637 unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath);
638 LOG (GNUNET_ERROR_TYPE_INFO, _ ("Using `%s' instead\n"), unixpath); 638 LOG (GNUNET_ERROR_TYPE_INFO, _ ("Using `%s' instead\n"), unixpath);
639 } 639 }
640#ifdef LINUX 640#ifdef __linux__
641 abstract = GNUNET_CONFIGURATION_get_value_yesno (cfg, 641 abstract = GNUNET_CONFIGURATION_get_value_yesno (cfg,
642 "TESTING", 642 "TESTING",
643 "USE_ABSTRACT_SOCKETS"); 643 "USE_ABSTRACT_SOCKETS");