--- mysql-3.23.52/include/global.h.jj 2002-08-13 18:08:16.000000000 -0400 +++ mysql-3.23.52/include/global.h 2002-11-18 18:35:10.000000000 -0500 @@ -58,6 +58,10 @@ #define _GNU_SOURCE 1 #endif +#ifdef __linux__ +#define HAVE_ERRNO_AS_DEFINE +#endif + /* The client defines this to avoid all thread code */ #if defined(UNDEF_THREADS_HACK) #undef THREAD