summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpetr@mysql.com <>2004-12-18 03:53:43 +0300
committerpetr@mysql.com <>2004-12-18 03:53:43 +0300
commit0cca54050295092704af9839c1156f2e78c83c3b (patch)
treed8d4592cf0dfa1a2181ba96de6ec1b0bfff82a60 /include
parent7c369a240bccb1b468c7465f3e39edce6d3d96ba (diff)
parent299a2cbeb3225f4f44f3bbbc86f799cc16cd7b39 (diff)
downloadmariadb-git-0cca54050295092704af9839c1156f2e78c83c3b.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0
Diffstat (limited to 'include')
-rw-r--r--include/my_net.h5
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);