summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-08-01 13:00:47 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-08-01 13:00:47 +0200
commit48a75f45ddf7cc15fbf908dbf48223802bf8b4d2 (patch)
tree7b5974c481c8cefda409dc6f7902be3cf7914129 /vespalib
parentb3cff606d0314b6815a7800f263aa47aad99d5f4 (diff)
Add includes needed when using clang (on mac).
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/net/socket_address.cpp1
-rw-r--r--vespalib/src/vespa/vespalib/stllike/hashtable.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/net/socket_address.cpp b/vespalib/src/vespa/vespalib/net/socket_address.cpp
index d71441b0989..1a7a04b2925 100644
--- a/vespalib/src/vespa/vespalib/net/socket_address.cpp
+++ b/vespalib/src/vespa/vespalib/net/socket_address.cpp
@@ -8,6 +8,7 @@
#include <ifaddrs.h>
#include <netdb.h>
#include <cassert>
+#include <cerrno>
namespace vespalib {
diff --git a/vespalib/src/vespa/vespalib/stllike/hashtable.cpp b/vespalib/src/vespa/vespalib/stllike/hashtable.cpp
index 9c0db3ae817..52639fd6275 100644
--- a/vespalib/src/vespa/vespalib/stllike/hashtable.cpp
+++ b/vespalib/src/vespa/vespalib/stllike/hashtable.cpp
@@ -1,5 +1,6 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/stllike/hashtable.hpp>
+#include <algorithm>
namespace {