forked from pool/libtorrent
bffe8fa7b5
resubmit after SR#106185 was turned down due to merge conflicts OBS-URL: https://build.opensuse.org/request/show/120544 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtorrent?expand=0&rev=1
88 lines
2.6 KiB
Diff
88 lines
2.6 KiB
Diff
From: Jan Engelhardt <jengelh@medozas.de>
|
|
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 <cstddef>
|
|
#include <algorithm>
|
|
|
|
#include <unistd.h>
|
|
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 <cstdio>
|
|
#include <limits>
|
|
#include <sstream>
|
|
|
|
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 <cstdlib>
|
|
#include <vector>
|
|
#include <torrent/common.h>
|
|
#include <torrent/data/block_transfer.h>
|
|
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 <cstdlib>
|
|
#include <torrent/common.h>
|
|
#include <torrent/data/piece.h>
|
|
|
|
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 <cstdio>
|
|
#include <sstream>
|
|
|
|
#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 <cstdio>
|
|
#include <sigc++/adaptors/bind.h>
|
|
#include <torrent/connection_manager.h>
|
|
|