summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-05-27 10:02:00 +0300
committerunknown <monty@hundin.mysql.fi>2002-05-27 10:02:00 +0300
commit38fad3332171b912e5342359b1dccb75ace7fbde (patch)
treecc8ec15699fa14c27ce241d7eb584550d1a6286d /include/my_net.h
parente3b5fd8696a36d06bd9993edd16ca7d51955bf15 (diff)
downloadmariadb-git-38fad3332171b912e5342359b1dccb75ace7fbde.tar.gz
Split raid C function to separate file to make things more portable.
Fixed some portability things in my_gethostbyname_r Portability fix for type_decimal.test BUILD/SETUP.sh: Fixes for gcc 3.1 extra/resolveip.c: Cleanup include/my_net.h: Portability fix for SCO mysql-test/t/type_decimal.test: Portability fix for FreeBSD mysys/Makefile.am: Portability fix for OSF1 mysys/raid.cc: Portability fix for OSF1
Diffstat (limited to 'include/my_net.h')
-rw-r--r--include/my_net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/my_net.h b/include/my_net.h
index e06a1142418..6a6e2aecc27 100644
--- a/include/my_net.h
+++ b/include/my_net.h
@@ -72,6 +72,12 @@ struct hostent *my_gethostbyname_r(const char *name,
#define GETHOSTBYNAME_BUFF_SIZE 2048
#endif
+/* On SCO you get a link error when refering to h_errno */
+#ifdef SCO
+#undef h_errno
+#define h_errno errno
+#endif
+
#ifdef __cplusplus
}
#endif