From: Jan Engelhardt Date: 2012-01-31 11:09:58.559664592 +0100 Fix build errors regarding unknown snprintf, std::scanf, ptrdiff_t, NULL. --- src/data/memory_chunk.cc | 1 + src/protocol/extensions.cc | 1 + src/torrent/data/block.h | 1 + src/torrent/data/block_transfer.h | 1 + src/tracker/tracker_dht.cc | 1 + src/tracker/tracker_udp.cc | 1 + 6 files changed, 6 insertions(+) Index: libtorrent-0.12.2/src/data/memory_chunk.cc =================================================================== --- libtorrent-0.12.2.orig/src/data/memory_chunk.cc +++ libtorrent-0.12.2/src/data/memory_chunk.cc @@ -36,6 +36,7 @@ #include "config.h" +#include #include #include Index: libtorrent-0.12.2/src/protocol/extensions.cc =================================================================== --- libtorrent-0.12.2.orig/src/protocol/extensions.cc +++ libtorrent-0.12.2/src/protocol/extensions.cc @@ -36,6 +36,7 @@ #include "config.h" +#include #include #include Index: libtorrent-0.12.2/src/torrent/data/block.h =================================================================== --- libtorrent-0.12.2.orig/src/torrent/data/block.h +++ libtorrent-0.12.2/src/torrent/data/block.h @@ -37,6 +37,7 @@ #ifndef LIBTORRENT_BLOCK_H #define LIBTORRENT_BLOCK_H +#include #include #include #include Index: libtorrent-0.12.2/src/torrent/data/block_transfer.h =================================================================== --- libtorrent-0.12.2.orig/src/torrent/data/block_transfer.h +++ libtorrent-0.12.2/src/torrent/data/block_transfer.h @@ -37,6 +37,7 @@ #ifndef LIBTORRENT_BLOCK_TRANSFER_H #define LIBTORRENT_BLOCK_TRANSFER_H +#include #include #include Index: libtorrent-0.12.2/src/tracker/tracker_dht.cc =================================================================== --- libtorrent-0.12.2.orig/src/tracker/tracker_dht.cc +++ libtorrent-0.12.2/src/tracker/tracker_dht.cc @@ -36,6 +36,7 @@ #include "config.h" +#include #include #include "dht/dht_router.h" Index: libtorrent-0.12.2/src/tracker/tracker_udp.cc =================================================================== --- libtorrent-0.12.2.orig/src/tracker/tracker_udp.cc +++ libtorrent-0.12.2/src/tracker/tracker_udp.cc @@ -36,6 +36,7 @@ #include "config.h" +#include #include #include