diff options
author | unknown <petr@mysql.com> | 2004-12-18 03:21:20 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2004-12-18 03:21:20 +0300 |
commit | 59b24f9f39ab0538da3b026ecfcba8bdcc0276fe (patch) | |
tree | 8534c659fc49cd07781b03d887a9d5bd7e175b7b /include/my_net.h | |
parent | d9f5d2f328f70c7fdc823bb704f7e02bb1d25266 (diff) | |
download | mariadb-git-59b24f9f39ab0538da3b026ecfcba8bdcc0276fe.tar.gz |
BUG#7384 IM fails to compile on Solaris.
Solaris doesn't define INADDR_NONE macro. This resulted in compilation
failure. (advanced fix)
include/my_net.h:
Added INADDR_NONE define
sql-common/client.c:
removed INADDR_NONE define as it is moved to my_net.h
sql/mysqld.cc:
add my_net.h define and remove INADDR_NONE
Diffstat (limited to 'include/my_net.h')
-rw-r--r-- | include/my_net.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_net.h b/include/my_net.h index 7b42afa1f3a..71914964e46 100644 --- a/include/my_net.h +++ b/include/my_net.h @@ -72,6 +72,11 @@ C_MODE_START #define in_addr_t uint32 #endif +/* On some operating systems (e.g. Solaris) INADDR_NONE is not defined */ +#ifndef INADDR_NONE +#define INADDR_NONE -1 /* Error value from inet_addr */ +#endif + /* Thread safe or portable version of some functions */ void my_inet_ntoa(struct in_addr in, char *buf); |