1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

compile fix

This commit is contained in:
tomas@poseidon.(none)
2004-09-16 13:24:42 +00:00
parent 7c4ab566d2
commit 5ee0411275

View File

@@ -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;