From 1d060ec093f18f897ebeeb053bff9c38114f3389 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Oct 2004 11:45:07 +0200 Subject: [PATCH] To allow compilation on Tru64, the MySQL code should not mess with the system-reserved (and system-defined) '_REENTRANT' CPP identifier. Especially, it must not be "undefine"d, because the Tru64 compiler needs it if threads are enabled. include/my_pthread.h: On Tru64, '_REENTRANT' is set by the compiler when the "-pthread" option is given, and it must be set when the system's 'pthread.h' is included (or else a '#error' is activated). So it must not be undef'ed, and it should not be def'ed either, as it is a system-reserved CPP identifier with which we should not mess anyway - it is risky to use it! Build on all platforms was checked privately, change caused no errors! --- include/my_pthread.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/my_pthread.h b/include/my_pthread.h index 602a4439575..cd0cf49a891 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -234,7 +234,6 @@ extern int my_sigwait(const sigset_t *set,int *sig); #include #undef sigwait #endif -#undef _REENTRANT /* Fix if _REENTRANT is in pthread.h */ #include #ifndef _REENTRANT #define _REENTRANT