From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Nadav Har'El <n...@scylladb.com> Branch: master
gcc 10: fix warnings but including various standard headers in couple of files 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 <jwkozac...@gmail.com> Message-Id: <20200505221304.47178-2-jwkozac...@gmail.com> --- diff --git a/arch/x64/string-ssse3.cc b/arch/x64/string-ssse3.cc --- 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 --- 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 --- 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 --- 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> -- 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 osv-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000007f0a5305a4eeac01%40google.com.