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>
This commit is contained in:
Chris Friedt 2022-10-23 09:19:48 -04:00 committed by Jens Geyer
parent ef3d52e04c
commit 0a29a48e5a
5 changed files with 11 additions and 3 deletions

View File

@ -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>

View File

@ -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 {

View File

@ -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 {

View File

@ -17,8 +17,9 @@
* under the License.
*/
#include <cassert>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <thrift/transport/TBufferTransports.h>

View File

@ -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>