summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi
diff options
context:
space:
mode:
authorunknown <tomas@mc05.(none)>2004-05-12 12:14:54 +0200
committerunknown <tomas@mc05.(none)>2004-05-12 12:14:54 +0200
commit2e9dee04e082c7b61b57d4754c72a2ecfd67c75e (patch)
tree4c444e6c0d7731b5df0d85d97a1a55bb96c8eac0 /ndb/src/ndbapi
parent69424ca9abd94729693a593a1ceb899d756ffbf7 (diff)
downloadmariadb-git-2e9dee04e082c7b61b57d4754c72a2ecfd67c75e.tar.gz
portability/autoconf fixes
ndb/config/Defs.LINUX.x86.GCC.mk: postability/autoconf fixes ndb/include/portlib/NdbMutex.h: postability/autoconf fixes ndb/src/common/editline/unix.h: postability/autoconf fixes ndb/src/common/portlib/memtest/memtest.c: postability/autoconf fixes ndb/src/common/portlib/unix/NdbTCP.c: postability/autoconf fixes ndb/src/common/portlib/unix/NdbThread.c: postability/autoconf fixes ndb/src/common/transporter/Makefile: postability/autoconf fixes ndb/src/common/transporter/SHM_Transporter.cpp: postability/autoconf fixes ndb/src/mgmsrv/MgmtSrvr.cpp: postability/autoconf fixes
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r--ndb/src/ndbapi/Ndb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/Ndb.cpp b/ndb/src/ndbapi/Ndb.cpp
index 68f49b975ee..448a29ca485 100644
--- a/ndb/src/ndbapi/Ndb.cpp
+++ b/ndb/src/ndbapi/Ndb.cpp
@@ -22,6 +22,7 @@ Name: Ndb.cpp
******************************************************************************/
#include <ndb_global.h>
+#include <pthread.h>
#include "NdbApiSignal.hpp"
#include "NdbImpl.hpp"
@@ -1244,7 +1245,7 @@ Ndb::printState(const char* fmt, ...)
NdbMutex_Lock(&print_state_mutex);
bool dups = false;
ndbout << buf << " ndb=" << hex << this << dec;
-#ifdef NDB_LINUX
+#ifndef NDB_WIN32
ndbout << " thread=" << (int)pthread_self();
#endif
ndbout << endl;