From: Wayne Davison Date: Sun, 30 Mar 2003 23:00:49 +0000 (+0000) Subject: Define O_BINARY as "0" if it isn't defined. X-Git-Tag: v2.5.7~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afbcc8f21649b825b6410bd854026fad7240768b;p=thirdparty%2Frsync.git Define O_BINARY as "0" if it isn't defined. --- diff --git a/rsync.h b/rsync.h index bd804f7d..d897b3d6 100644 --- a/rsync.h +++ b/rsync.h @@ -623,6 +623,10 @@ void rsyserr(enum logcode, int, const char *, ...) #define inet_ntoa rep_inet_ntoa #endif +/* Make sure that the O_BINARY flag is defined. */ +#ifndef O_BINARY +#define O_BINARY 0 +#endif #ifndef HAVE_STRLCPY size_t strlcpy(char *d, const char *s, size_t bufsize);