HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #266

Ticket #266: rtorrent-0.8.5.patch

File rtorrent-0.8.5.patch, 4.4 KB (added by elite, 6 years ago)
  • rak/socket_address.h

    diff -Naur rtorrent-0.8.5/rak/socket_address.h rtorrent-0.8.5-haiku/rak/socket_address.h
    old new  
    5555#include <sys/types.h> 
    5656#include <sys/socket.h> 
    5757 
     58typedef unsigned short  sa_family_t; 
     59 
    5860namespace rak { 
    5961 
    6062class socket_address_inet; 
  • src/display/canvas.cc

    diff -Naur rtorrent-0.8.5/src/display/canvas.cc rtorrent-0.8.5-haiku/src/display/canvas.cc
    old new  
    3838 
    3939#include <unistd.h> 
    4040#include <sys/ioctl.h> 
    41 #include <sys/termios.h> 
     41#include <termios.h> 
    4242#include <torrent/exceptions.h> 
    4343 
    4444#include "canvas.h" 
  • src/display/window_file_list.cc

    diff -Naur rtorrent-0.8.5/src/display/window_file_list.cc rtorrent-0.8.5-haiku/src/display/window_file_list.cc
    old new  
    4646#include "ui/element_file_list.h" 
    4747 
    4848#include "window_file_list.h" 
     49#include <wchar.h> 
     50typedef std::basic_string<wchar_t> StdWString; 
    4951 
    5052namespace display { 
    5153 
    … …  
    5961 
    6062// Convert std::string to std::wstring of given width (in screen positions), 
    6163// taking into account that some characters may be occupying two screen positions. 
    62 std::wstring 
     64StdWString 
    6365wstring_width(const std::string& i_str, int width) { 
    6466  wchar_t result[width + 1]; 
    6567  size_t length = std::mbstowcs(result, i_str.c_str(), width); 
  • src/input/path_input.cc

    diff -Naur rtorrent-0.8.5/src/input/path_input.cc rtorrent-0.8.5-haiku/src/input/path_input.cc
    old new  
    4242#include <rak/path.h> 
    4343 
    4444#include <sys/types.h> 
    45 #include <sys/dir.h> 
     45#include <dirent.h> 
     46#include <sys/stat.h> 
    4647 
    4748#include "path_input.h" 
    4849 
    … …  
    7273 
    7374struct _transform_filename { 
    7475  void operator () (utils::directory_entry& entry) { 
    75     if (entry.d_type == DT_DIR) 
     76    if (S_ISDIR(entry.d_type)) 
    7677      entry.d_name += '/'; 
    7778  } 
    7879}; 
  • src/signal_handler.cc

    diff -Naur rtorrent-0.8.5/src/signal_handler.cc rtorrent-0.8.5-haiku/src/signal_handler.cc
    old new  
    107107    return "Timer signal"; 
    108108  case SIGTERM: 
    109109    return "Termination signal"; 
    110   case SIGBUS: 
    111     return "Bus error"; 
     110//  case SIGBUS: 
     111//    return "Bus error"; 
    112112  default: 
    113113    return "Unlisted"; 
    114114  } 
  • src/signal_handler.h

    diff -Naur rtorrent-0.8.5/src/signal_handler.h rtorrent-0.8.5-haiku/src/signal_handler.h
    old new  
    3737#ifndef RTORRENT_SIGNAL_HANDLER_H 
    3838#define RTORRENT_SIGNAL_HANDLER_H 
    3939 
    40 #include <sys/signal.h> 
     40#include <signal.h> 
    4141#include <sigc++/functors/slot.h> 
    4242 
    4343class SignalHandler { 
  • src/utils/directory.cc

    diff -Naur rtorrent-0.8.5/src/utils/directory.cc rtorrent-0.8.5-haiku/src/utils/directory.cc
    old new  
    3939#include <algorithm> 
    4040#include <functional> 
    4141#include <dirent.h> 
     42#include <sys/stat.h> 
    4243#include <rak/path.h> 
    4344#include <torrent/exceptions.h> 
    4445 
    … …  
    6970    return false; 
    7071 
    7172  struct dirent* entry; 
     73  struct stat st; 
    7274 
    7375  while ((entry = readdir(d)) != NULL) { 
    7476    if ((flags & update_hide_dot) && entry->d_name[0] == '.') 
    … …  
    7880 
    7981    itr->d_fileno = entry->d_fileno; 
    8082    itr->d_reclen = entry->d_reclen; 
    81     itr->d_type   = entry->d_type; 
     83    lstat(rak::path_expand(m_path).c_str(), &st); 
     84    itr->d_type   = st.st_mode; 
    8285 
    8386#ifdef DIRENT_NAMLEN_EXISTS_FOOBAR 
    8487    itr->d_name   = std::string(entry->d_name, entry->d_name + entry->d_namlen); 
  • src/utils/directory.h

    diff -Naur rtorrent-0.8.5/src/utils/directory.h rtorrent-0.8.5-haiku/src/utils/directory.h
    old new  
    4141#include <vector> 
    4242#include <inttypes.h> 
    4343 
     44#define d_fileno d_ino 
     45 
    4446namespace utils { 
    4547 
    4648struct directory_entry { 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/