From 5ee0411275c9bee81dde2b48e25bb7421574b58f Mon Sep 17 00:00:00 2001 From: "tomas@poseidon.(none)" <> Date: Thu, 16 Sep 2004 13:24:42 +0000 Subject: [PATCH] compile fix --- ndb/src/common/portlib/NdbTCP.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ndb/src/common/portlib/NdbTCP.cpp b/ndb/src/common/portlib/NdbTCP.cpp index a3d91f9c7b1..8448d64222f 100644 --- a/ndb/src/common/portlib/NdbTCP.cpp +++ b/ndb/src/common/portlib/NdbTCP.cpp @@ -39,7 +39,14 @@ Ndb_getInAddr(struct in_addr * dst, const char *address) { /* Try it as aaa.bbb.ccc.ddd. */ dst->s_addr = inet_addr(address); - if (dst->s_addr != INADDR_NONE) { + if (dst->s_addr != +#ifdef INADDR_NONE + INADDR_NONE +#else + -1 +#endif + ) + { return 0; } return -1;