summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-05-27 10:02:00 +0300
committermonty@hundin.mysql.fi <>2002-05-27 10:02:00 +0300
commit07886933b84986178b6fb9c15f2a8efda13144f0 (patch)
treecc8ec15699fa14c27ce241d7eb584550d1a6286d /include/my_net.h
parent747e8778c911e80a8ac722e869daad6c8f4adff5 (diff)
downloadmariadb-git-07886933b84986178b6fb9c15f2a8efda13144f0.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
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