Commit f4f87ec7 authored by unknown's avatar unknown

Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1

into gw.mysql.r18.ru:/usr/home/ram/work/4.1
parents ff5e7e19 5b8ea4e3
...@@ -39,7 +39,14 @@ Ndb_getInAddr(struct in_addr * dst, const char *address) { ...@@ -39,7 +39,14 @@ Ndb_getInAddr(struct in_addr * dst, const char *address) {
/* Try it as aaa.bbb.ccc.ddd. */ /* Try it as aaa.bbb.ccc.ddd. */
dst->s_addr = inet_addr(address); 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 0;
} }
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment