aboutsummaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-01-04 11:14:02 +0100
committerTor Egge <Tor.Egge@broadpark.no>2021-01-04 11:14:02 +0100
commit66cbc3e7d7f50fd53827ee9346e24f6d78735f9a (patch)
treebee76cc57fd51a665da5333400673baa00b12bf3 /fastos
parent1c4d7f8105ec86df94bb435b9a31801b0ed921fa (diff)
Include thread header file when needed.
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/tests/processtest.cpp1
-rw-r--r--fastos/src/vespa/fastos/unix_process.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/fastos/src/tests/processtest.cpp b/fastos/src/tests/processtest.cpp
index e39b6461a29..66e58df39b9 100644
--- a/fastos/src/tests/processtest.cpp
+++ b/fastos/src/tests/processtest.cpp
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "tests.h"
#include <vespa/fastos/process.h>
+#include <thread>
using namespace std::chrono_literals;
using namespace std::chrono;
diff --git a/fastos/src/vespa/fastos/unix_process.cpp b/fastos/src/vespa/fastos/unix_process.cpp
index b66d5ce8346..8db3c714822 100644
--- a/fastos/src/vespa/fastos/unix_process.cpp
+++ b/fastos/src/vespa/fastos/unix_process.cpp
@@ -12,6 +12,7 @@
#ifndef __linux__
#include <signal.h>
#endif
+#include <thread>
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX