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 e1570dd5dac0d545ada0378a022974aa957dab92..a0ae3f1b45c0f758042da8d2c92642a103804f70 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 e74c5370a7936040e0a584bf2d288f6e59f462e5..2ec6bf67a49d8f5888a4b591b27b0e5d811f2a83 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";