aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-bluetooth.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/gnunet-helper-transport-bluetooth.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/gnunet-helper-transport-bluetooth.c')
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index 74806e630..975af7068 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -115,7 +115,7 @@ struct SendBuffer
115 char buf[MAXLINE * 2]; 115 char buf[MAXLINE * 2];
116}; 116};
117 117
118#ifdef LINUX 118#ifdef __linux__
119/** 119/**
120 * Devices buffer used to keep a list with all the discoverable devices in 120 * Devices buffer used to keep a list with all the discoverable devices in
121 * order to send them HELLO messages one by one when it receive a broadcast message. 121 * order to send them HELLO messages one by one when it receive a broadcast message.
@@ -567,7 +567,7 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
567 567
568 568
569/* ************** end of clone ***************** */ 569/* ************** end of clone ***************** */
570#ifdef LINUX 570#ifdef __linux__
571/** 571/**
572 * Function for assigning a port number 572 * Function for assigning a port number
573 * 573 *
@@ -795,7 +795,7 @@ read_from_the_socket (void *sock,
795 return -1; 795 return -1;
796 } 796 }
797 797
798 #ifdef LINUX 798 #ifdef __linux__
799 /* Get the channel used */ 799 /* Get the channel used */
800 int len; 800 int len;
801 struct sockaddr_rc rc_addr = { 0 }; 801 struct sockaddr_rc rc_addr = { 0 };
@@ -1012,7 +1012,7 @@ mac_set (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *taIeeeHeader,
1012} 1012}
1013 1013
1014 1014
1015#ifdef LINUX 1015#ifdef __linux__
1016/** 1016/**
1017 * Test if the given interface name really corresponds to a bluetooth 1017 * Test if the given interface name really corresponds to a bluetooth
1018 * device. 1018 * device.
@@ -1117,7 +1117,7 @@ stdin_send_hw (void *cls, const struct GNUNET_MessageHeader *hdr)
1117} 1117}
1118 1118
1119 1119
1120#ifdef LINUX 1120#ifdef __linux__
1121/** 1121/**
1122 * Broadcast a HELLO message for peer discovery 1122 * Broadcast a HELLO message for peer discovery
1123 * 1123 *
@@ -1382,7 +1382,7 @@ inquiry_devices: // skip the conditions and force a inquiry for new devices
1382int 1382int
1383main (int argc, char *argv[]) 1383main (int argc, char *argv[])
1384{ 1384{
1385#ifdef LINUX 1385#ifdef __linux__
1386 struct HardwareInfos dev; 1386 struct HardwareInfos dev;
1387 char readbuf[MAXLINE]; 1387 char readbuf[MAXLINE];
1388 int maxfd; 1388 int maxfd;