mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 04:03:03 +01:00
Fixed the Windows build.
This commit is contained in:
parent
7435a2de81
commit
1a70da9ff9
@ -95,6 +95,7 @@
|
|||||||
|
|
||||||
#ifdef WIN_NT
|
#ifdef WIN_NT
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
#include <io.h>
|
||||||
#define MUTEX &m_shmemMutex
|
#define MUTEX &m_shmemMutex
|
||||||
#define MUTEX_PTR NULL
|
#define MUTEX_PTR NULL
|
||||||
#else
|
#else
|
||||||
@ -1692,12 +1693,12 @@ void LockManager::bug(ISC_STATUS* status_vector, const TEXT* string)
|
|||||||
#ifdef DEV_BUILD
|
#ifdef DEV_BUILD
|
||||||
/* In the worst case this code makes it possible to attach live process
|
/* In the worst case this code makes it possible to attach live process
|
||||||
* and see shared memory data. */
|
* and see shared memory data. */
|
||||||
if (isatty(2))
|
if (isatty(fileno(stderr)))
|
||||||
fprintf(stderr, "Attach to pid=%d\n", getpid());
|
fprintf(stderr, "Attach to pid=%d\n", getpid());
|
||||||
else
|
else
|
||||||
gds__log("Attach to pid=%d\n", getpid());
|
gds__log("Attach to pid=%d\n", getpid());
|
||||||
sleep(120);
|
|
||||||
/**/
|
THREAD_SLEEP(120);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fb_utils::logAndDie(s);
|
fb_utils::logAndDie(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user