Changeset 679


Ignore:
Timestamp:
Jul 23, 2006, 7:39:02 PM (15 years ago)
Author:
titer
Message:

AmigaOS4 patch by Andrea Palmate

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/internal.h

    r310 r679  
    4141#include <sys/types.h>
    4242#include <sys/stat.h>
     43#ifndef __AMIGAOS4__
    4344#include <sys/resource.h>
     45#endif
    4446#include <netdb.h>
    4547#include <sys/socket.h>
  • trunk/libtransmission/platform.c

    r310 r679  
    7676    snprintf( prefsDirectory, MAX_PATH_LENGTH,
    7777              "%s/Library/Caches/Transmission", getenv( "HOME" ) );
     78#elif defined(__AMIGAOS4__)
     79    snprintf( prefsDirectory, MAX_PATH_LENGTH, "PROGDIR:.transmission" );
    7880#else
    7981    snprintf( prefsDirectory, MAX_PATH_LENGTH, "%s/.transmission",
  • trunk/libtransmission/transmission.c

    r560 r679  
    610610            tr_trackerCompleted( tor->tracker );
    611611            tr_ioSaveResume( tor->io );
     612#ifndef __AMIGAOS4__
    612613            sync(); /* KLUDGE: all files should be closed and
    613614                       re-opened in read-only mode instead */
     615#endif
    614616        }
    615617
Note: See TracChangeset for help on using the changeset viewer.