git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: Yann Dirson <ydirson@altern.org>,
	git@vger.kernel.org, cvsps@dm.cobite.com
Subject: [PATCH 3/4] Use __linux__ conditional, not LINUX.
Date: Tue, 13 Jun 2006 00:32:31 -0400	[thread overview]
Message-ID: <20060613043231.16681.13655.stgit@dv.roinet.com> (raw)
In-Reply-To: <20060613043224.16681.98358.stgit@dv.roinet.com>

From: Pavel Roskin <proski@gnu.org>

__linux__ is defined automatically, LINUX is not.

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

 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 @@ #endif
 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));

  parent reply	other threads:[~2006-06-13  4:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13  4:32 [PATCH 1/4] Remove dependencies with absolute path Pavel Roskin
2006-06-13  4:32 ` [PATCH 2/4] Trivial compile fix for cache.c Pavel Roskin
2006-06-13  4:32 ` Pavel Roskin [this message]
2006-06-13  4:32 ` [PATCH 4/4] Use INADDR_NONE instead of -1 to check inet_addr() result Pavel Roskin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060613043231.16681.13655.stgit@dv.roinet.com \
    --to=proski@gnu.org \
    --cc=cvsps@dm.cobite.com \
    --cc=git@vger.kernel.org \
    --cc=ydirson@altern.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).