diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:02:49 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:02:49 +0200 |
commit | 7a4461355f7ee8e5ec71888516cbfd640dd7e110 (patch) | |
tree | 5f800152d48de71247177c4fca93fff24dc993ac /document | |
parent | 15e7bcd9e902407fbe14cf830968f06c9fb5fb89 (diff) |
Include only what you need.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/tests/documenttestcase.cpp | 1 | ||||
-rw-r--r-- | document/src/tests/documentupdatetestcase.cpp | 2 | ||||
-rw-r--r-- | document/src/tests/fieldpathupdatetestcase.cpp | 2 | ||||
-rw-r--r-- | document/src/tests/predicate/predicate_test.cpp | 7 | ||||
-rw-r--r-- | document/src/vespa/document/predicate/predicate.cpp | 1 |
5 files changed, 9 insertions, 4 deletions
diff --git a/document/src/tests/documenttestcase.cpp b/document/src/tests/documenttestcase.cpp index 32503ac0bd0..44cff2c80de 100644 --- a/document/src/tests/documenttestcase.cpp +++ b/document/src/tests/documenttestcase.cpp @@ -13,6 +13,7 @@ #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/document/util/serializableexceptions.h> #include <vespa/document/util/bytebuffer.h> +#include <fcntl.h> using vespalib::nbostream; diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp index 2324d21cd24..b6aca1ec8be 100644 --- a/document/src/tests/documentupdatetestcase.cpp +++ b/document/src/tests/documentupdatetestcase.cpp @@ -25,6 +25,8 @@ #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/objects/nbostream.h> #include <vespa/vespalib/util/exception.h> +#include <fcntl.h> +#include <unistd.h> using namespace document::config_builder; using vespalib::tensor::Tensor; diff --git a/document/src/tests/fieldpathupdatetestcase.cpp b/document/src/tests/fieldpathupdatetestcase.cpp index fc94c5e63eb..70f16eccfe1 100644 --- a/document/src/tests/fieldpathupdatetestcase.cpp +++ b/document/src/tests/fieldpathupdatetestcase.cpp @@ -13,7 +13,7 @@ #include <vespa/vespalib/testkit/testapp.h> #include <vespa/document/serialization/vespadocumentserializer.h> #include <vespa/vespalib/objects/nbostream.h> - +#include <fcntl.h> using vespalib::Identifiable; using namespace document::config_builder; diff --git a/document/src/tests/predicate/predicate_test.cpp b/document/src/tests/predicate/predicate_test.cpp index e8db197fdad..6da866cb154 100644 --- a/document/src/tests/predicate/predicate_test.cpp +++ b/document/src/tests/predicate/predicate_test.cpp @@ -1,15 +1,16 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Unit tests for predicate. -#include <vespa/log/log.h> -LOG_SETUP("predicate_test"); - #include <vespa/document/predicate/predicate.h> #include <vespa/vespalib/data/slime/slime.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/document/predicate/predicate_slime_builder.h> #include <string> +#include <climits> + +#include <vespa/log/log.h> +LOG_SETUP("predicate_test"); using std::string; using std::vector; diff --git a/document/src/vespa/document/predicate/predicate.cpp b/document/src/vespa/document/predicate/predicate.cpp index 3e44cd649b7..df4128246a9 100644 --- a/document/src/vespa/document/predicate/predicate.cpp +++ b/document/src/vespa/document/predicate/predicate.cpp @@ -3,6 +3,7 @@ #include "predicate.h" #include <vespa/vespalib/data/slime/slime.h> #include <set> +#include <climits> using std::mismatch; using std::pair; |