diff options
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 14 |
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 c85124b68..5e72fad09 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #define LOG(kind, ...) GNUNET_log_from (kind, "transport-udp", __VA_ARGS__) | 41 | #define LOG(kind, ...) GNUNET_log_from (kind, "transport-udp", __VA_ARGS__) |
42 | 42 | ||
43 | /* *********** Cryogenic ********** */ | 43 | /* *********** Cryogenic ********** */ |
44 | #if LINUX | 44 | #if __linux__ |
45 | #include <sys/stat.h> | 45 | #include <sys/stat.h> |
46 | #include <fcntl.h> | 46 | #include <fcntl.h> |
47 | 47 | ||
@@ -92,7 +92,7 @@ struct BroadcastAddress | |||
92 | 92 | ||
93 | socklen_t addrlen; | 93 | socklen_t addrlen; |
94 | 94 | ||
95 | #if LINUX | 95 | #if __linux__ |
96 | /** | 96 | /** |
97 | * Cryogenic handle. | 97 | * Cryogenic handle. |
98 | */ | 98 | */ |
@@ -277,7 +277,7 @@ udp_ipv4_broadcast_send (void *cls) | |||
277 | } | 277 | } |
278 | } | 278 | } |
279 | 279 | ||
280 | #if LINUX | 280 | #if __linux__ |
281 | /* | 281 | /* |
282 | * Cryogenic | 282 | * Cryogenic |
283 | */ | 283 | */ |
@@ -359,7 +359,7 @@ udp_ipv6_broadcast_send (void *cls) | |||
359 | GNUNET_a2s ((const struct sockaddr *) &plugin->ipv6_multicast_address, | 359 | GNUNET_a2s ((const struct sockaddr *) &plugin->ipv6_multicast_address, |
360 | sizeof(struct sockaddr_in6))); | 360 | sizeof(struct sockaddr_in6))); |
361 | } | 361 | } |
362 | #if LINUX | 362 | #if __linux__ |
363 | /* | 363 | /* |
364 | * Cryogenic | 364 | * Cryogenic |
365 | */ | 365 | */ |
@@ -448,7 +448,7 @@ iface_proc (void *cls, | |||
448 | (NULL != plugin->sockv4) && | 448 | (NULL != plugin->sockv4) && |
449 | (addrlen == sizeof(struct sockaddr_in))) | 449 | (addrlen == sizeof(struct sockaddr_in))) |
450 | { | 450 | { |
451 | #if LINUX | 451 | #if __linux__ |
452 | /* | 452 | /* |
453 | * setup Cryogenic FD for ipv4 broadcasting | 453 | * setup Cryogenic FD for ipv4 broadcasting |
454 | */ | 454 | */ |
@@ -503,7 +503,7 @@ iface_proc (void *cls, | |||
503 | } | 503 | } |
504 | else | 504 | else |
505 | { | 505 | { |
506 | #if LINUX | 506 | #if __linux__ |
507 | /* | 507 | /* |
508 | * setup Cryogenic FD for ipv6 broadcasting | 508 | * setup Cryogenic FD for ipv6 broadcasting |
509 | */ | 509 | */ |
@@ -632,7 +632,7 @@ stop_broadcast (struct Plugin *plugin) | |||
632 | } | 632 | } |
633 | } | 633 | } |
634 | 634 | ||
635 | #if LINUX | 635 | #if __linux__ |
636 | GNUNET_DISK_file_close (p->cryogenic_fd); | 636 | GNUNET_DISK_file_close (p->cryogenic_fd); |
637 | #endif | 637 | #endif |
638 | GNUNET_CONTAINER_DLL_remove (plugin->broadcast_head, | 638 | GNUNET_CONTAINER_DLL_remove (plugin->broadcast_head, |