From: Andrew Tridgell Date: Thu, 18 Jun 1998 09:37:21 +0000 (+0000) Subject: move include of compat.h after other includes. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e8f5b936ad534e84c0bab9b1a41b1ce5680945f5 move include of compat.h after other includes. --- diff --git a/rsync.h b/rsync.h index 41f480ec..73452d92 100644 --- a/rsync.h +++ b/rsync.h @@ -91,10 +91,6 @@ #include #endif -#ifdef HAVE_COMPAT_H -#include -#endif - #ifdef HAVE_MALLOC_H #include #endif @@ -187,6 +183,26 @@ #include #include +#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 + +#ifdef HAVE_COMPAT_H +#include +#endif + + #ifndef S_IFLNK #define S_IFLNK 0120000 #endif @@ -338,21 +354,6 @@ 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" #include "proto.h"