Open files in binary mode on systems that have O_BINARY
authorRon Yorston <rmy@tigress.co.uk>
Wed, 13 Nov 2013 10:06:47 +0000 (10:06 +0000)
committerChris Frey <cdfrey@foursquare.net>
Mon, 18 Nov 2013 05:32:42 +0000 (00:32 -0500)
commitaa263f13f3238ce3b0023daad8194df4a513816e
tree6abb471054a21a3a5c510a40580843bfb0b77395
parente4c1f2974258d6a325622cfd712873d49b5e7a73
Open files in binary mode on systems that have O_BINARY

There are three places in the library where files are opened.  In two
of those places the flag O_BINARY is included if defined.  This patch
does the same in the third.

I noticed this because I've been using (a hacked version of) the library
cross-compiled with MinGW on WIN32.  I expect Cygwin would also be
affected.

Ron
lib/append.c