Add missing header files.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 15 Jan 2014 14:50:43 +0000 (15:50 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:25 +0000 (17:13 +0100)
[Issue#]    N/A
[Problem]   Build break.
[Cause]     Lack of header file unistd.h (function unlink was
            undefined) in open-for-manager.cpp and password-file.cpp
            (function close was undefined).
[Solution]  Fix header list.

[Verification] Build.

Change-Id: If5b4d4f76677431162fded7f833fcaf915f65db9

src/server/service/open-for-manager.cpp
src/server/service/password-file.cpp

index e1570dd..a0ae3f1 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/types.h>
 #include <dirent.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include <sys/smack.h>
 #include <smack-check.h>
index e74c537..2ec6bf6 100644 (file)
@@ -41,6 +41,7 @@
 
 #include <fcntl.h>
 #include <string.h>
+#include <unistd.h>
 
 namespace {
     const std::string DATA_DIR = "/opt/data/security-server";