summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp_broadcasting.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-20 14:53:33 +0000
committerng0 <ng0@n0.is>2019-11-20 14:53:33 +0000
commitc4eb7c3e2afd631fa83f3d21555829178a5e10c1 (patch)
treeb56ef598e649be4a5b412503940f6d9394c685ad /src/transport/plugin_transport_udp_broadcasting.c
parent13226e828c6b7d56c77444afe159c1ccf008d62d (diff)
use ifdef instead of if for __linux__ and BSD
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index 5e72fad09..a65f5bd2f 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -41,7 +41,7 @@
#define LOG(kind, ...) GNUNET_log_from (kind, "transport-udp", __VA_ARGS__)
/* *********** Cryogenic ********** */
-#if __linux__
+#ifdef __linux__
#include <sys/stat.h>
#include <fcntl.h>
@@ -92,7 +92,7 @@ struct BroadcastAddress
socklen_t addrlen;
-#if __linux__
+#ifdef __linux__
/**
* Cryogenic handle.
*/
@@ -277,7 +277,7 @@ udp_ipv4_broadcast_send (void *cls)
}
}
-#if __linux__
+#ifdef __linux__
/*
* Cryogenic
*/
@@ -359,7 +359,7 @@ udp_ipv6_broadcast_send (void *cls)
GNUNET_a2s ((const struct sockaddr *) &plugin->ipv6_multicast_address,
sizeof(struct sockaddr_in6)));
}
-#if __linux__
+#ifdef __linux__
/*
* Cryogenic
*/
@@ -448,7 +448,7 @@ iface_proc (void *cls,
(NULL != plugin->sockv4) &&
(addrlen == sizeof(struct sockaddr_in)))
{
-#if __linux__
+#ifdef __linux__
/*
* setup Cryogenic FD for ipv4 broadcasting
*/
@@ -503,7 +503,7 @@ iface_proc (void *cls,
}
else
{
-#if __linux__
+#ifdef __linux__
/*
* setup Cryogenic FD for ipv6 broadcasting
*/
@@ -632,7 +632,7 @@ stop_broadcast (struct Plugin *plugin)
}
}
-#if __linux__
+#ifdef __linux__
GNUNET_DISK_file_close (p->cryogenic_fd);
#endif
GNUNET_CONTAINER_DLL_remove (plugin->broadcast_head,