From 38fad3332171b912e5342359b1dccb75ace7fbde Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 27 May 2002 10:02:00 +0300 Subject: 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 --- include/my_net.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/my_net.h') 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 -- cgit v1.2.1