diff options
author | unknown <monty@narttu.mysql.fi> | 2003-10-08 22:05:06 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-10-08 22:05:06 +0300 |
commit | 617e09abcf4d0b41283bd423f32415d7f4459e9e (patch) | |
tree | 59aaad53e786e0d079e076f0641e4aadab76c580 | |
parent | d1d07c99d7dc1f443776a48e66aa471b3b4535e4 (diff) | |
download | mariadb-git-617e09abcf4d0b41283bd423f32415d7f4459e9e.tar.gz |
Portability fix
-rw-r--r-- | sql/mysqld.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index c6af4ad5c12..1c26d4a8b7c 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -53,6 +53,10 @@ #define IF_PURIFY(A,B) (B) #endif +#ifndef INADDR_NONE +#define INADDR_NONE -1 // Error value from inet_addr +#endif + /* stack traces are only supported on linux intel */ #if defined(__linux__) && defined(__i386__) && defined(USE_PSTACK) #define HAVE_STACK_TRACE_ON_SEGV @@ -5214,7 +5218,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), my_use_symdir=0; break; case (int) OPT_BIND_ADDRESS: - if (!argument || (my_bind_addr= (ulong) inet_addr(argument)) == INADDR_NONE) + if (!argument || + (my_bind_addr= (ulong) inet_addr(argument)) == INADDR_NONE) { struct hostent *ent; if (argument || argument[0]) |