Add missing header <cstdarg> for va_list.

* Fix building on OpenBSD.
This commit is contained in:
Xiyue Deng 2018-04-23 02:17:47 -07:00 committed by Arvid Norberg
parent 3ede0b9c20
commit 21d8e9e26b
3 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_DISABLE_LOGGING
#include <boost/shared_ptr.hpp>
#include <cstdarg> // for va_list
#endif
#ifdef TORRENT_USE_OPENSSL

View File

@ -62,6 +62,7 @@ POSSIBILITY OF SUCH DAMAGE.
#if __cplusplus >= 201103L || defined __clang__
#if DEBUG_DISK_THREAD
#include <cstdarg> // for va_list
#define DLOG(...) debug_log(__VA_ARGS__)
#else
#define DLOG(...) do {} while(false)

View File

@ -107,6 +107,8 @@ POSSIBILITY OF SUCH DAMAGE.
// for logging stat layout
#include "libtorrent/stat.hpp"
#include <cstdarg> // for va_list
// for logging the size of DHT structures
#ifndef TORRENT_DISABLE_DHT
#include <libtorrent/kademlia/find_data.hpp>