summaryrefslogtreecommitdiffstats
path: root/src/dialogs/qfiledialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/qfiledialog.cpp')
-rw-r--r--src/dialogs/qfiledialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp
index b3dc48e73..b81f04df3 100644
--- a/src/dialogs/qfiledialog.cpp
+++ b/src/dialogs/qfiledialog.cpp
@@ -99,9 +99,9 @@
#endif
#ifdef TQ_WS_WIN
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
# include <private/qmutexpool_p.h>
-#endif // TQT_THREAD_SUPPORT
+#endif // TQT_NO_THREAD
#endif // TQ_WS_WIN
#if !defined(Q_OS_TEMP)
@@ -526,7 +526,7 @@ static void resolveLibs()
static bool triedResolve = FALSE;
if ( !triedResolve ) {
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
// protect initialization
TQMutexLocker locker( tqt_global_mutexpool ?
tqt_global_mutexpool->get( &triedResolve ) : 0 );
@@ -3196,7 +3196,7 @@ void TQFileDialog::setDir( const TQString & pathstr )
i++;
TQCString user;
if ( i == 1 ) {
-#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
+#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
# ifndef _POSIX_LOGIN_NAME_MAX
# define _POSIX_LOGIN_NAME_MAX 9
@@ -3209,13 +3209,13 @@ void TQFileDialog::setDir( const TQString & pathstr )
#else
user = ::getlogin();
if ( !user )
-#endif
+#endif // !TQT_NO_THREAD && _POSIX_THREAD_SAFE_FUNCTIONS
user = getenv( "LOGNAME" );
} else
user = dr.mid( 1, i-1 ).local8Bit();
dr = dr.mid( i, dr.length() );
struct passwd *pw;
-#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_FREEBSD) && !defined(Q_OS_OPENBSD)
+#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_FREEBSD) && !defined(Q_OS_OPENBSD)
struct passwd mt_pw;
char buffer[2048];
if ( ::getpwnam_r( user, &mt_pw, buffer, 2048, &pw ) == 0 && pw == &mt_pw )