Ticket #2074 (closed defect: fixed)

Opened 4 weeks ago

Last modified 4 weeks ago

Missing sys/types.h patch for FreeBSD

Reported by: Artifex Maximus <artifex@freemail.hu> Owned by: rakshasa
Priority: normal Milestone:
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>

Attachments

Change History

Changed 4 weeks 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 4 weeks ago by rakshasa

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

Will be in the next commit.

Add/Change #2074 (Missing sys/types.h patch for FreeBSD)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.