mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
compile fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user