Steffen Daode Nurpmeso <sdao...@googlemail.com> added the comment: On Sat, 7 May 2011 14:20:51 +0200, Charles-François Natali wrote: > # ifdef __APPLE__ > res = fcntl(fd, F_FULLFSYNC); > # endif > # ifdef __NetBSD__ > res = fsync_range(fd, FFILESYNC|FDISKSYNC, 0, 0); > # endif > > Since __APPLE__ and __NetBSD__ are exclusive, you could use something like > # if defined(__APPLE__) > res = fcntl(fd, F_FULLFSYNC); > # elif defined(__NetBSD__) > res = fsync_range(fd, FFILESYNC|FDISKSYNC, 0, 0); > # endif
Yes, you're right, i'll update the patch accordingly. -- Steffen, sdaoden(*)(gmail.com) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11877> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com