X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/73233f0f1232c337ede5fae3f9f95d78457df7d0..d6e6ecbdbf0452ec95afc98c2700076e39b4692f:/rsync.h diff --git a/rsync.h b/rsync.h index 3418b817..14910462 100644 --- a/rsync.h +++ b/rsync.h @@ -290,6 +290,20 @@ static inline int flist_up(struct file_list *flist, int i) return i; } +#if HAVE_DIRENT_H +# include +#else +# define dirent direct +# if HAVE_SYS_NDIR_H +# include +# endif +# if HAVE_SYS_DIR_H +# include +# endif +# if HAVE_NDIR_H +# include +# endif +#endif #include "byteorder.h" #include "version.h" @@ -306,21 +320,6 @@ extern char *sys_errlist[]; # define strrchr rindex #endif -#if HAVE_DIRENT_H -# include -#else -# define dirent direct -# if HAVE_SYS_NDIR_H -# include -# endif -# if HAVE_SYS_DIR_H -# include -# endif -# if HAVE_NDIR_H -# include -# endif -#endif - #ifndef HAVE_ERRNO_DECL extern int errno; #endif