From: Marc Mutz Date: Thu, 16 Feb 2012 13:37:04 +0000 (+0100) Subject: Compilation fix: missing includes for geteuid() X-Git-Tag: qt-v5.0.0-alpha1~1023 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1004b6f8380a46c379b819ef4a5c7ba555f6666;p=profile%2Fivi%2Fqtbase.git Compilation fix: missing includes for geteuid() Change-Id: I054b8c9a398b5e192c2e005a39cba19bb4930966 Reviewed-by: David Faure Reviewed-by: Thiago Macieira --- diff --git a/tests/auto/corelib/io/qtemporarydir/tst_qtemporarydir.cpp b/tests/auto/corelib/io/qtemporarydir/tst_qtemporarydir.cpp index 46d2fa2..0b2e1e1 100644 --- a/tests/auto/corelib/io/qtemporarydir/tst_qtemporarydir.cpp +++ b/tests/auto/corelib/io/qtemporarydir/tst_qtemporarydir.cpp @@ -50,6 +50,10 @@ #ifdef Q_OS_WIN # include #endif +#ifdef Q_OS_UNIX // for geteuid() +# include +# include +#endif class tst_QTemporaryDir : public QObject { diff --git a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp index 8473597..ad9da27 100644 --- a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp +++ b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp @@ -52,6 +52,11 @@ #include #include +#ifdef Q_OS_UNIX // for geteuid() +# include +# include +#endif + typedef QMap QStringMap; typedef QList QIntList; Q_DECLARE_METATYPE(QImage)