diff -ur mysql-3.22.32.orig/include/global.h mysql-3.22.32/include/global.h --- mysql-3.22.32.orig/include/global.h 1999-12-31 10:19:56.000000000 +0900 +++ mysql-3.22.32/include/global.h 2007-09-03 20:05:01.000000000 +0900 @@ -398,7 +398,7 @@ #ifdef HAVE_LINUXTHREADS /* #define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C)) */ -#define sigset(A,B) signal((A),(B)) +/* #define sigset(A,B) signal((A),(B)) */ #endif /* Remove some things that mit_thread break or doesn't support */ diff -ur mysql-3.22.32.orig/include/my_sys.h mysql-3.22.32/include/my_sys.h --- mysql-3.22.32.orig/include/my_sys.h 2000-01-11 10:24:52.000000000 +0900 +++ mysql-3.22.32/include/my_sys.h 2007-09-03 19:57:30.000000000 +0900 @@ -122,11 +122,8 @@ #endif #endif /* MSDOS */ -#ifdef HAVE_ERRNO_AS_DEFINE #include /* errno is a define */ -#else -extern int errno; /* declare errno */ -#endif +/* extern int errno; /* declare errno */ extern const char ** NEAR errmsg[]; extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE]; extern char *home_dir; /* Home directory for user */ @@ -389,7 +386,7 @@ extern my_string my_load_path(my_string to, const char *path, const char *own_path_prefix); extern int wild_compare(const char *str,const char *wildstr); -extern my_string strcasestr(const char *src,const char *suffix); +/* extern my_string strcasestr(const char *src,const char *suffix); */ extern int my_strcasecmp(const char *s,const char *t); extern int my_strsortcmp(const char *s,const char *t); extern int my_casecmp(const char *s,const char *t,uint length);