X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9c28e5262862876095648711ca2660c68b40a9b9..990ff150efe782b1f85af0c3b903f4e50e1757be:/rsync.h diff --git a/rsync.h b/rsync.h index 21bd1b27..d897b3d6 100644 --- a/rsync.h +++ b/rsync.h @@ -344,6 +344,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3 }; #define MAXPATHLEN 1024 #endif +#ifndef NAME_MAX +#define NAME_MAX 255 +#endif + #ifndef INADDR_NONE #define INADDR_NONE 0xffffffff #endif @@ -619,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);