From 22aea3f42b17a3675f95f39c6d9d33f4075f8f8e Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Thu, 31 Oct 2013 04:31:05 +0000 Subject: 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 --- src/corelib/io/qlockfile_unix.cpp | 1 + 1 file changed, 1 insertion(+) 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 // flock #include // kill #include // kill +#include // gethostname QT_BEGIN_NAMESPACE -- cgit v1.2.3