summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mylan>2003-11-08 16:00:00 +0100
committerunknown <serg@sergbook.mylan>2003-11-08 16:00:00 +0100
commit9dbaca650210a6eaac3e89cc0e219a2398fb58f5 (patch)
tree8635191bab0519aa253e02dc737794b81efbc186 /include/my_net.h
parent21b624f046c4efbb0fd1f25135cc6663ab3ded4e (diff)
parentb036800ee04fb4c15f47305ba83a55d0246921f6 (diff)
downloadmariadb-git-9dbaca650210a6eaac3e89cc0e219a2398fb58f5.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into sergbook.mylan:/usr/home/serg/Abk/mysql-4.1 mysql-test/r/fulltext.result: Auto merged mysql-test/t/fulltext.test: Auto merged
Diffstat (limited to 'include/my_net.h')
-rw-r--r--include/my_net.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/my_net.h b/include/my_net.h
index 28d862d8528..7b42afa1f3a 100644
--- a/include/my_net.h
+++ b/include/my_net.h
@@ -63,6 +63,15 @@ C_MODE_START
#define O_NONBLOCK 1 /* For emulation of fcntl() */
#endif
+/*
+ On OSes which don't have the in_addr_t, we guess that using uint32 is the best
+ possible choice. We guess this from the fact that on HP-UX64bit & FreeBSD64bit
+ & Solaris64bit, in_addr_t is equivalent to uint32. And on Linux32bit too.
+*/
+#ifndef HAVE_IN_ADDR_T
+#define in_addr_t uint32
+#endif
+
/* Thread safe or portable version of some functions */
void my_inet_ntoa(struct in_addr in, char *buf);