diff options
author | Pavel Roskin <proski@gnu.org> | 2006-06-13 00:32:31 -0400 |
---|---|---|
committer | Yann Dirson <ydirson@altern.org> | 2006-06-13 09:41:10 +0200 |
commit | 4598349e81068d4af9a893c6433958cf9b4fa835 (patch) | |
tree | 5b1a3c6f0fd57d8d3baa93cdd3c8470b236adeb5 | |
parent | 37f08ffbfeeea2b2b5b457b85e023b314a6006ef (diff) | |
download | cvsps-4598349e81068d4af9a893c6433958cf9b4fa835.tar.gz |
Use __linux__ conditional, not LINUX.
__linux__ is defined automatically, LINUX is not.
Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r-- | cbtcommon/tcpsocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cbtcommon/tcpsocket.c b/cbtcommon/tcpsocket.c index 27cc13a..a174007 100644 --- a/cbtcommon/tcpsocket.c +++ b/cbtcommon/tcpsocket.c @@ -185,14 +185,14 @@ tcp_connect(int sockfd, const char *rem_addr, unsigned short port) 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)); |