summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2004-10-04 11:45:07 +0200
committerunknown <joerg@mysql.com>2004-10-04 11:45:07 +0200
commit1d060ec093f18f897ebeeb053bff9c38114f3389 (patch)
treeef07dfebdadf87c4d752dc57bb8bcd615e6d68ba /include/my_pthread.h
parentb3b26c05dc01045858ab5d36055812b92fee3690 (diff)
downloadmariadb-git-1d060ec093f18f897ebeeb053bff9c38114f3389.tar.gz
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!
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h1
1 files changed, 0 insertions, 1 deletions
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 <signal.h>
#undef sigwait
#endif
-#undef _REENTRANT /* Fix if _REENTRANT is in pthread.h */
#include <pthread.h>
#ifndef _REENTRANT
#define _REENTRANT