diff options
author | Chris Friedt <cfriedt@meta.com> | 2022-10-23 09:19:48 -0400 |
---|---|---|
committer | Jens Geyer <Jens-G@users.noreply.github.com> | 2022-10-23 22:11:55 +0200 |
commit | 0a29a48e5ac01dd49cfcc52cfec09ac5bdc4ba7c (patch) | |
tree | 949d49a7cadc38f2bf4b76d47e5ce29a43d76aa8 | |
parent | ef3d52e04c085a37fa0f1ba4c837c2b0456d6012 (diff) | |
download | thrift-0a29a48e5ac01dd49cfcc52cfec09ac5bdc4ba7c.tar.gz |
lib: cpp: add missing functional and cmath includes
Manual runs of the autotools docker script were failing due to
`std::functional` not being a member of `std`. Similar error
messages for `std::ceil` and `std::log`.
Signed-off-by: Chris Friedt <cfriedt@meta.com>
-rw-r--r-- | lib/cpp/src/thrift/async/TAsyncBufferProcessor.h | 1 | ||||
-rw-r--r-- | lib/cpp/src/thrift/async/TAsyncProcessor.h | 4 | ||||
-rw-r--r-- | lib/cpp/src/thrift/concurrency/FunctionRunner.h | 4 | ||||
-rw-r--r-- | lib/cpp/src/thrift/transport/TBufferTransports.cpp | 3 | ||||
-rw-r--r-- | lib/cpp/src/thrift/transport/TServerSocket.h | 2 |
5 files changed, 11 insertions, 3 deletions
diff --git a/lib/cpp/src/thrift/async/TAsyncBufferProcessor.h b/lib/cpp/src/thrift/async/TAsyncBufferProcessor.h index e3c3597c2..87095160b 100644 --- a/lib/cpp/src/thrift/async/TAsyncBufferProcessor.h +++ b/lib/cpp/src/thrift/async/TAsyncBufferProcessor.h @@ -20,6 +20,7 @@ #ifndef _THRIFT_TASYNC_BUFFER_PROCESSOR_H_ #define _THRIFT_TASYNC_BUFFER_PROCESSOR_H_ 1 +#include <functional> #include <memory> #include <thrift/transport/TBufferTransports.h> diff --git a/lib/cpp/src/thrift/async/TAsyncProcessor.h b/lib/cpp/src/thrift/async/TAsyncProcessor.h index 019233945..1c927fad1 100644 --- a/lib/cpp/src/thrift/async/TAsyncProcessor.h +++ b/lib/cpp/src/thrift/async/TAsyncProcessor.h @@ -20,9 +20,11 @@ #ifndef _THRIFT_TASYNCPROCESSOR_H_ #define _THRIFT_TASYNCPROCESSOR_H_ 1 -#include <thrift/protocol/TProtocol.h> +#include <functional> #include <memory> + #include <thrift/TProcessor.h> +#include <thrift/protocol/TProtocol.h> namespace apache { namespace thrift { diff --git a/lib/cpp/src/thrift/concurrency/FunctionRunner.h b/lib/cpp/src/thrift/concurrency/FunctionRunner.h index 468834416..35343301f 100644 --- a/lib/cpp/src/thrift/concurrency/FunctionRunner.h +++ b/lib/cpp/src/thrift/concurrency/FunctionRunner.h @@ -20,9 +20,11 @@ #ifndef _THRIFT_CONCURRENCY_FUNCTION_RUNNER_H #define _THRIFT_CONCURRENCY_FUNCTION_RUNNER_H 1 -#include <thrift/concurrency/Thread.h> +#include <functional> #include <memory> +#include <thrift/concurrency/Thread.h> + namespace apache { namespace thrift { namespace concurrency { diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.cpp b/lib/cpp/src/thrift/transport/TBufferTransports.cpp index 45c0c9bf9..efca5bd01 100644 --- a/lib/cpp/src/thrift/transport/TBufferTransports.cpp +++ b/lib/cpp/src/thrift/transport/TBufferTransports.cpp @@ -17,8 +17,9 @@ * under the License. */ -#include <cassert> #include <algorithm> +#include <cassert> +#include <cmath> #include <thrift/transport/TBufferTransports.h> diff --git a/lib/cpp/src/thrift/transport/TServerSocket.h b/lib/cpp/src/thrift/transport/TServerSocket.h index c87a7f65b..e826707ac 100644 --- a/lib/cpp/src/thrift/transport/TServerSocket.h +++ b/lib/cpp/src/thrift/transport/TServerSocket.h @@ -20,6 +20,8 @@ #ifndef _THRIFT_TRANSPORT_TSERVERSOCKET_H_ #define _THRIFT_TRANSPORT_TSERVERSOCKET_H_ 1 +#include <functional> + #include <thrift/concurrency/Mutex.h> #include <thrift/transport/PlatformSocket.h> #include <thrift/transport/TServerTransport.h> |