changeset 2:0ef0361648d6

Use __linux__ conditional, not LINUX. __linux__ is defined automatically, LINUX is not. Signed-off-by: Pavel Roskin <proski@gnu.org> committer: ng0 <ng0@crash.cx>
author Pavel Roskin <proski@gnu.org>
date Thu, 22 Feb 2018 15:51:23 +0000
parents 719d1c109f45
children 3181de3cc627
files cbtcommon/tcpsocket.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cbtcommon/tcpsocket.c	Thu Feb 22 15:51:13 2018 +0000
+++ b/cbtcommon/tcpsocket.c	Thu Feb 22 15:51:23 2018 +0000
@@ -185,14 +185,14 @@
 int
 convert_address(long *dest, const char *addr_str)
 {
-#ifdef LINUX
+#ifdef __linux__
   struct in_addr ip;
 #endif
   int retval = 0;
   char errstr[256];
   
   /* first try converting "numbers and dots" notation */
-#ifdef LINUX
+#ifdef __linux__
   if ( inet_aton(addr_str, &ip) )
   {
     memcpy(dest, &ip.s_addr, sizeof(ip.s_addr));