summaryrefslogtreecommitdiff
path: root/mysys/my_tempnam.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-11-09 13:26:46 +0200
committermonty@hundin.mysql.fi <>2002-11-09 13:26:46 +0200
commitb0fae584b98e4f498cd63d1002c816f8a4be5afb (patch)
treedc4bb2a2343e6494e99b3429fc1247fa2dd18281 /mysys/my_tempnam.c
parente08ed8a582992beb940bab54e4ffa1d7bbd8d75c (diff)
downloadmariadb-git-b0fae584b98e4f498cd63d1002c816f8a4be5afb.tar.gz
Portability fixes for HP compiler and HPUX11
Diffstat (limited to 'mysys/my_tempnam.c')
-rw-r--r--mysys/my_tempnam.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysys/my_tempnam.c b/mysys/my_tempnam.c
index 6c17aa5b165..4fa2dd2abc4 100644
--- a/mysys/my_tempnam.c
+++ b/mysys/my_tempnam.c
@@ -23,6 +23,12 @@
#include "mysys_priv.h"
#include <m_string.h>
+
+/* HPUX 11.0 doesn't allow us to change the environ pointer */
+#ifdef HPUX11
+#undef HAVE_TEMPNAM
+#endif
+
#include "my_static.h"
#include "mysys_err.h"