diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-26 15:05:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-26 15:05:02 +0100 |
commit | 3e2c8d0b5ae4ff54dff84cddc373b8aaa18b3000 (patch) | |
tree | 478c8c9ed0229961bb49bf239e7c7d0db48cea55 | |
parent | f238227eb97a50dc78606bc764e338a66af0cda7 (diff) | |
parent | 06669441cbbdef1d9d493576c6301d7b71874d65 (diff) |
Merge pull request #11949 from vespa-engine/toregge/add-needed-include-statements-for-gcc-10-on-fedora-rawhide
Add include statements needed by newer build environments.
-rw-r--r-- | document/src/vespa/document/serialization/util.h | 2 | ||||
-rw-r--r-- | fnet/src/vespa/fnet/databuffer.cpp | 1 | ||||
-rw-r--r-- | juniper/src/vespa/juniper/expcache.h | 1 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/diskindex/field_length_scanner.h | 1 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/index/postinglisthandle.h | 1 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/util/url.cpp | 1 | ||||
-rw-r--r-- | storage/src/tests/distributor/distributor_message_sender_stub.h | 1 | ||||
-rw-r--r-- | vespalib/src/tests/exception_classes/mmap.cpp | 1 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/data/databuffer.cpp | 1 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp | 1 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/net/crypto_socket.h | 1 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/util/stash.h | 1 | ||||
-rw-r--r-- | vespalog/src/vespa/log/log-assert.cpp | 1 | ||||
-rw-r--r-- | vespalog/src/vespa/log/log.h | 1 | ||||
-rw-r--r-- | vespamalloc/src/tests/test2/testgraph.cpp | 1 |
15 files changed, 16 insertions, 0 deletions
diff --git a/document/src/vespa/document/serialization/util.h b/document/src/vespa/document/serialization/util.h index 05953f1de2b..0e0bfabdde5 100644 --- a/document/src/vespa/document/serialization/util.h +++ b/document/src/vespa/document/serialization/util.h @@ -2,6 +2,8 @@ #pragma once +#include <cstdint> + namespace document { // Sets the value of a variable for the duration of this object's lifetime. diff --git a/fnet/src/vespa/fnet/databuffer.cpp b/fnet/src/vespa/fnet/databuffer.cpp index 74a8bc4e12c..d982f9609e0 100644 --- a/fnet/src/vespa/fnet/databuffer.cpp +++ b/fnet/src/vespa/fnet/databuffer.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 "databuffer.h" +#include <cstdio> FNET_DataBuffer::FNET_DataBuffer(uint32_t len) : _bufstart(nullptr), diff --git a/juniper/src/vespa/juniper/expcache.h b/juniper/src/vespa/juniper/expcache.h index 6939785914a..beaa491148c 100644 --- a/juniper/src/vespa/juniper/expcache.h +++ b/juniper/src/vespa/juniper/expcache.h @@ -2,6 +2,7 @@ #pragma once #include "simplemap.h" +#include <cstdint> class MatchObject; diff --git a/searchlib/src/vespa/searchlib/diskindex/field_length_scanner.h b/searchlib/src/vespa/searchlib/diskindex/field_length_scanner.h index e282a85b64f..3ef081a2820 100644 --- a/searchlib/src/vespa/searchlib/diskindex/field_length_scanner.h +++ b/searchlib/src/vespa/searchlib/diskindex/field_length_scanner.h @@ -5,6 +5,7 @@ #include <vector> #include <unordered_map> #include <limits> +#include <cstdint> namespace search::index { class DocIdAndFeatures; } diff --git a/searchlib/src/vespa/searchlib/index/postinglisthandle.h b/searchlib/src/vespa/searchlib/index/postinglisthandle.h index 8eb42dc91fe..a9176d7cf13 100644 --- a/searchlib/src/vespa/searchlib/index/postinglisthandle.h +++ b/searchlib/src/vespa/searchlib/index/postinglisthandle.h @@ -3,6 +3,7 @@ #include <vespa/searchlib/index/postinglistcounts.h> #include <memory> +#include <cstdlib> namespace search { class BitVector; } namespace search::queryeval { class SearchIterator; } diff --git a/searchlib/src/vespa/searchlib/util/url.cpp b/searchlib/src/vespa/searchlib/util/url.cpp index 496a19d153f..2e1a808c493 100644 --- a/searchlib/src/vespa/searchlib/util/url.cpp +++ b/searchlib/src/vespa/searchlib/util/url.cpp @@ -2,6 +2,7 @@ #include "url.h" #include <algorithm> +#include <cstdio> #include <vespa/log/log.h> LOG_SETUP(".searchlib.util.url"); diff --git a/storage/src/tests/distributor/distributor_message_sender_stub.h b/storage/src/tests/distributor/distributor_message_sender_stub.h index 7ebd4dee1ae..440dee70d48 100644 --- a/storage/src/tests/distributor/distributor_message_sender_stub.h +++ b/storage/src/tests/distributor/distributor_message_sender_stub.h @@ -5,6 +5,7 @@ #include <vespa/storage/distributor/distributormessagesender.h> #include <tests/common/message_sender_stub.h> #include <cassert> +#include <string> namespace storage { diff --git a/vespalib/src/tests/exception_classes/mmap.cpp b/vespalib/src/tests/exception_classes/mmap.cpp index 2d4c4796473..81b5e0de30e 100644 --- a/vespalib/src/tests/exception_classes/mmap.cpp +++ b/vespalib/src/tests/exception_classes/mmap.cpp @@ -3,6 +3,7 @@ #include <vector> #include <cassert> #include <string.h> +#include <cstdlib> #include <sys/resource.h> using namespace vespalib::alloc; diff --git a/vespalib/src/vespa/vespalib/data/databuffer.cpp b/vespalib/src/vespa/vespalib/data/databuffer.cpp index 758922aec6d..39c0f3f7482 100644 --- a/vespalib/src/vespa/vespalib/data/databuffer.cpp +++ b/vespalib/src/vespa/vespalib/data/databuffer.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 "databuffer.h" #include <algorithm> +#include <cstdio> namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp index 4006897dce5..061963f95a4 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/iaccelrated.cpp @@ -7,6 +7,7 @@ #include "avx2.h" #include "avx512.h" #include <vespa/vespalib/util/memory.h> +#include <cstdio> #include <vespa/log/log.h> LOG_SETUP(".vespalib.hwaccelrated"); diff --git a/vespalib/src/vespa/vespalib/net/crypto_socket.h b/vespalib/src/vespa/vespalib/net/crypto_socket.h index c409e5a0e83..d51a97e2743 100644 --- a/vespalib/src/vespa/vespalib/net/crypto_socket.h +++ b/vespalib/src/vespa/vespalib/net/crypto_socket.h @@ -3,6 +3,7 @@ #pragma once #include <memory> +#include <cstdlib> namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/util/stash.h b/vespalib/src/vespa/vespalib/util/stash.h index 6804b096ee3..aa1441aa0bb 100644 --- a/vespalib/src/vespa/vespalib/util/stash.h +++ b/vespalib/src/vespa/vespalib/util/stash.h @@ -4,6 +4,7 @@ #include "traits.h" #include "arrayref.h" +#include <cstdlib> namespace vespalib { namespace stash { diff --git a/vespalog/src/vespa/log/log-assert.cpp b/vespalog/src/vespa/log/log-assert.cpp index 51ab7a019ad..28fac730189 100644 --- a/vespalog/src/vespa/log/log-assert.cpp +++ b/vespalog/src/vespa/log/log-assert.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 "log.h" +#include <cstdio> LOG_SETUP(""); namespace ns_log { diff --git a/vespalog/src/vespa/log/log.h b/vespalog/src/vespa/log/log.h index ba2408240f3..b4dfc612890 100644 --- a/vespalog/src/vespa/log/log.h +++ b/vespalog/src/vespa/log/log.h @@ -7,6 +7,7 @@ #include <new> // for placement new #include <cstdlib> // for malloc #include <cstring> // for memset +#include <cstdarg> // for va_list #include <cinttypes> /** diff --git a/vespamalloc/src/tests/test2/testgraph.cpp b/vespamalloc/src/tests/test2/testgraph.cpp index 9f25e45b7e9..ae0c468b185 100644 --- a/vespamalloc/src/tests/test2/testgraph.cpp +++ b/vespamalloc/src/tests/test2/testgraph.cpp @@ -3,6 +3,7 @@ #include <vespamalloc/util/callgraph.h> #include <vespamalloc/util/callstack.h> #include <vespamalloc/util/traceutil.h> +#include <string> using namespace vespamalloc; |