X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e8f5b936ad534e84c0bab9b1a41b1ce5680945f5..6608462cac742530ed6528bfb5ac7e26f43a31ea:/rsync.h diff --git a/rsync.h b/rsync.h index 73452d92..b3d44725 100644 --- a/rsync.h +++ b/rsync.h @@ -69,6 +69,13 @@ #endif #include + +#ifdef HAVE_GETOPT_LONG +#include +#else +#include "lib/getopt.h" +#endif + #ifdef HAVE_UNISTD_H #include #endif @@ -162,12 +169,6 @@ #include "lib/fnmatch.h" #endif -#ifdef HAVE_GETOPT_LONG -#include -#else -#include "lib/getopt.h" -#endif - #ifdef HAVE_GLOB #include #endif @@ -373,14 +374,6 @@ extern char *sys_errlist[]; extern int errno; #endif -#ifndef HAVE_BCOPY -#define bcopy(src,dest,n) memcpy(dest,src,n) -#endif - -#ifndef HAVE_BZERO -#define bzero(buf,n) memset(buf,0,n) -#endif - #define SUPPORT_LINKS HAVE_READLINK #define SUPPORT_HARD_LINKS HAVE_LINK @@ -445,3 +438,6 @@ extern int errno; #define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode) || S_ISSOCK(mode) || S_ISFIFO(mode)) +#ifndef ACCESSPERMS +#define ACCESSPERMS 0777 +#endif