aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrace Cham <hscham@google.com>2022-05-23 14:56:59 +0900
committerGrace Cham <hscham@google.com>2022-05-23 14:56:59 +0900
commit9025f9fa434e51766b8afb31ffb42cde7f5f74c9 (patch)
tree19611fb125064fd47732fbb691514ca20c474a93
parente0820dcfebfb4df925be2e37ad8f56c00dc624f5 (diff)
downloadpuffin-9025f9fa434e51766b8afb31ffb42cde7f5f74c9.tar.gz
puffin: include <unistd.h> explicitly
It is removed from build/build_config.h from libchrome r950791 onwards. For unlink, close. Bug: 231676446 Test: FEATURES=test emerge-hatch puffin Change-Id: Iae91fd56ac1403c4fe47b6a8939339a6d3049cdc
-rw-r--r--src/unittest_common.cc2
-rw-r--r--src/unittest_common.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/unittest_common.cc b/src/unittest_common.cc
index ad3a85f..ac050dd 100644
--- a/src/unittest_common.cc
+++ b/src/unittest_common.cc
@@ -4,6 +4,8 @@
#include "puffin/src/unittest_common.h"
+#include <unistd.h>
+
using std::string;
using std::vector;
diff --git a/src/unittest_common.h b/src/unittest_common.h
index eac61e6..8727986 100644
--- a/src/unittest_common.h
+++ b/src/unittest_common.h
@@ -5,6 +5,8 @@
#ifndef SRC_UNITTEST_COMMON_H_
#define SRC_UNITTEST_COMMON_H_
+#include <unistd.h>
+
#include <string>
#include <vector>