Ignore:
Timestamp:
Feb 2, 2011, 11:19:54 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3973 "JIT verification verifies fresh downloaded torrents" -- win32 portability fix for r11813.

fsync() doesn't exist on Windows. bencode had a private function, tr_fsync(), that is a portability wrapper around fsync() on *nix and _commit() on win32. Make this function package-visible, rather than private, so fdlimit.c can use it too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r11806 r11816  
    16611661}
    16621662
    1663 /* portability wrapper for fsync(). */
    1664 static void
    1665 tr_fsync( int fd )
    1666 {
    1667 #ifdef WIN32
    1668     _commit( fd );
    1669 #else
    1670     fsync( fd );
    1671 #endif
    1672 }
    1673 
    16741663int
    16751664tr_bencToFile( const tr_benc * top, tr_fmt_mode mode, const char * filename )
Note: See TracChangeset for help on using the changeset viewer.