All of the sudden new gcc 10 complains about some missing types definitions so we make it happy by including proper headers in right places.
Signed-off-by: Waldemar Kozaczuk <[email protected]> --- arch/x64/string-ssse3.cc | 1 + include/osv/index-list.hh | 2 ++ tests/tst-sendfile.cc | 1 + tests/tst-tcp-cork.cc | 1 + 4 files changed, 5 insertions(+) diff --git a/arch/x64/string-ssse3.cc b/arch/x64/string-ssse3.cc index 7a3e0d39..a665b87d 100644 --- a/arch/x64/string-ssse3.cc +++ b/arch/x64/string-ssse3.cc @@ -8,6 +8,7 @@ #include "sse.hh" #include <x86intrin.h> #include <osv/initialize.hh> +#include <stdint.h> // We want to use the PALIGNR SSSE3 instruction to copy relatively // misaligned data (e.g. 1k from address 0x1000006 to address 0x2000007, diff --git a/include/osv/index-list.hh b/include/osv/index-list.hh index 3f8c73f2..36263930 100644 --- a/include/osv/index-list.hh +++ b/include/osv/index-list.hh @@ -8,6 +8,8 @@ #ifndef INDEX_LIST_HH_ #define INDEX_LIST_HH_ +#include <stddef.h> + // make_index_list<3> evaluates to index_list<0, 1, 2>. This can be used when // we want to enumerate a template argument pack, for example a tuple's. diff --git a/tests/tst-sendfile.cc b/tests/tst-sendfile.cc index 64b63354..1b128ab1 100644 --- a/tests/tst-sendfile.cc +++ b/tests/tst-sendfile.cc @@ -15,6 +15,7 @@ #include <netinet/in.h> #include <arpa/inet.h> +#include <string> #include <thread> /* To compile on Linux: g++ tests/tst-sendfile.cc -Wall -lpthread -std=c++0x */ diff --git a/tests/tst-tcp-cork.cc b/tests/tst-tcp-cork.cc index 9340969c..bae84ff2 100644 --- a/tests/tst-tcp-cork.cc +++ b/tests/tst-tcp-cork.cc @@ -26,6 +26,7 @@ #include <netinet/tcp.h> #include <assert.h> +#include <cstdlib> #include <thread> #include <chrono> -- 2.26.2 -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/20200505221304.47178-2-jwkozaczuk%40gmail.com.
