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>
This commit is contained in:
Laszlo Papp 2013-10-31 04:31:05 +00:00 committed by The Qt Project
parent 8c3f2f5f69
commit 22aea3f42b

View File

@ -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