summaryrefslogtreecommitdiff
path: root/include/my_net.h
diff options
context:
space:
mode:
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