Skip to content

Commit

Permalink
include: include what you use
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed May 14, 2022
1 parent f04bf16 commit ed30d71
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/protocol/handshake.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "handshake_encryption.h"
#include "net/protocol_buffer.h"
#include "net/socket_stream.h"
#include "net/throttle_list.h"
#include "torrent/bitfield.h"
#include "torrent/peer/peer_info.h"
#include "torrent/utils/priority_queue_default.h"
Expand Down
2 changes: 2 additions & 0 deletions include/protocol/protocol_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#define LIBTORRENT_NET_PROTOCOL_BASE_H

#include "net/protocol_buffer.h"
#include "net/throttle_list.h"
#include "torrent/data/piece.h"
#include "torrent/utils/timer.h"

namespace torrent {
Expand Down
3 changes: 3 additions & 0 deletions include/test/helpers/mock_compare.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
#define LIBTORRENT_TEST_HELPERS_MOCK_COMPARE_H

#include <algorithm>
#include <map>
#include <type_traits>

#include <gtest/gtest.h>

#include "torrent/event.h"
#include "torrent/net/socket_address.h"

Expand Down
1 change: 1 addition & 0 deletions include/torrent/object_raw_bencode.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <cstring>
#include <string>
#include <torrent/common.h>
#include <torrent/exceptions.h>

namespace torrent {

Expand Down
1 change: 1 addition & 0 deletions include/torrent/utils/allocators.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#define LIBTORRENT_UTILS_ALLOCATORS_H

#include <cstddef>
#include <cstdlib>
#include <limits>
#include <sys/types.h>

Expand Down

0 comments on commit ed30d71

Please sign in to comment.