compile fix: missing #include <unistd.h>s

Change-Id: I3bd34f67033fb921c49da97419c107811d8da6ff
Reviewed-by: David Faure <faure@kde.org>
This commit is contained in:
Marc Mutz 2012-02-23 12:23:25 +01:00 committed by Qt by Nokia
parent 88b69ab0c4
commit 8d10d9a444
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,11 @@
#ifdef QT_BUILD_INTERNAL #ifdef QT_BUILD_INTERNAL
#include <QtNetwork/private/qnetworkaccessmanager_p.h> #include <QtNetwork/private/qnetworkaccessmanager_p.h>
#endif #endif
#ifdef Q_OS_UNIX
# include <sys/types.h>
# include <unistd.h> // for getuid()
#endif
#include <time.h> #include <time.h>
#include "../../../network-settings.h" #include "../../../network-settings.h"

View File

@ -50,6 +50,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <unistd.h> // for unlink()
#endif #endif
Q_DECLARE_METATYPE(QLocalSocket::LocalSocketError) Q_DECLARE_METATYPE(QLocalSocket::LocalSocketError)