Ticket #2074 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Missing sys/types.h patch for FreeBSD

Reported by: Artifex Maximus <artifex@freemail.hu> Owned by: rakshasa
Priority: normal Component: libtorrent
Version: HEAD Severity: normal
Keywords: Cc:

Description

Patch for compile under FreeBSD + gcc44:

# svn diff
Index: src/tracker/tracker_udp.cc
===================================================================
--- src/tracker/tracker_udp.cc  (revision 1126)
+++ src/tracker/tracker_udp.cc  (working copy)
@@ -36,6 +36,8 @@

 #include "config.h"

+#include <sys/types.h>
+
 #include <sigc++/adaptors/bind.h>
 #include <torrent/connection_manager.h>
 #include <cstdio>
Index: src/torrent/connection_manager.cc
===================================================================
--- src/torrent/connection_manager.cc   (revision 1126)
+++ src/torrent/connection_manager.cc   (working copy)
@@ -36,6 +36,8 @@

 #include "config.h"

+#include <sys/types.h>
+
 #include <rak/address_info.h>
 #include <rak/socket_address.h>

Index: src/protocol/handshake_encryption.cc
===================================================================
--- src/protocol/handshake_encryption.cc        (revision 1126)
+++ src/protocol/handshake_encryption.cc        (working copy)
@@ -36,6 +36,8 @@

 #include "config.h"

+#include <sys/types.h>
+
 #include <algorithm>
 #include <functional>

Change History

Changed 2 years ago by Artifex Maximus <artifex@freemail.hu>

Same for rtorrent:

# svn diff
Index: src/command_scheduler.cc
===================================================================
--- src/command_scheduler.cc    (revision 1126)
+++ src/command_scheduler.cc    (working copy)
@@ -36,6 +36,8 @@

 #include "config.h"

+#include <sys/types.h>
+
 #include "core/manager.h"
 #include "core/download.h"
 #include "core/download_list.h"
Index: src/command_ui.cc
===================================================================
--- src/command_ui.cc   (revision 1126)
+++ src/command_ui.cc   (working copy)
@@ -36,6 +36,8 @@

 #include "config.h"

+#include <sys/types.h>
+
 #include <ctime>
 #include <rak/functional.h>
 #include <rak/functional_fun.h>

Changed 2 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed

Will be in the next commit.

Note: See TracTickets for help on using tickets.