openbsd-ports/x11/qt3/patches/patch-src_dialogs_qfiledialog_cpp
2002-12-02 15:49:42 +00:00

13 lines
654 B
Plaintext

$OpenBSD: patch-src_dialogs_qfiledialog_cpp,v 1.2 2002/12/02 15:49:42 espie Exp $
--- src/dialogs/qfiledialog.cpp.orig Mon Dec 2 16:18:37 2002
+++ src/dialogs/qfiledialog.cpp Mon Dec 2 16:42:22 2002
@@ -3170,7 +3170,7 @@ void QFileDialog::setDir( const QString
user = dr.mid( 1, i-1 ).local8Bit();
dr = dr.mid( i, dr.length() );
struct passwd *pw;
-#if defined(QT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
+#if defined(QT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(__OpenBSD__)
struct passwd mt_pw;
char buffer[2048];
if ( ::getpwnam_r( user, &mt_pw, buffer, 2048, &pw ) == 0 && pw == &mt_pw )