summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-10-31 04:31:05 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-31 12:33:55 +0100
commit22aea3f42b17a3675f95f39c6d9d33f4075f8f8e (patch)
tree90c04bb436d2adda9c31f6c136167b12ff04511d /src/corelib/io
parent8c3f2f5f6903f6b16778d55ca49812bcfde174a1 (diff)
Include unistd.h in the unix implementation source of QLockFile
This is necessary to avoid hidden dependencies for int gethostname(char *name, size_t namelen); This was revelead while backporting the class to Qt 4 for QtSerialPort. Change-Id: I1c477d295eeae90b3136fc6aae5d45982d5b1d73 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qlockfile_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qlockfile_unix.cpp b/src/corelib/io/qlockfile_unix.cpp
index d1dbb51e76..d1ef9c1770 100644
--- a/src/corelib/io/qlockfile_unix.cpp
+++ b/src/corelib/io/qlockfile_unix.cpp
@@ -54,6 +54,7 @@
#include <sys/file.h> // flock
#include <sys/types.h> // kill
#include <signal.h> // kill
+#include <unistd.h> // gethostname
QT_BEGIN_NAMESPACE