X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/740819ef7b3b96451e16b2fa3891d46cfc73ec64..736a6a291cf0fc9ab9410f300174a70e868e4122:/rsync.h diff --git a/rsync.h b/rsync.h index 0346c6c8..72176449 100644 --- a/rsync.h +++ b/rsync.h @@ -1,7 +1,7 @@ /* Copyright (C) by Andrew Tridgell 1996, 2000 Copyright (C) Paul Mackerras 1996 - Copyright (C) 2001 by Martin Pool + Copyright (C) 2001, 2002 by Martin Pool This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,7 +49,7 @@ #define SAME_TIME (1<<7) /* update this if you make incompatible changes */ -#define PROTOCOL_VERSION 25 +#define PROTOCOL_VERSION 26 /* We refuse to interoperate with versions that are not in this range. * Note that we assume we'll work with later versions: the onus is on @@ -263,17 +263,17 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3 }; #elif HAVE_LONGLONG #define int64 long long #else +/* As long as it gets... */ #define int64 off_t #define NO_INT64 #endif -#if HAVE_SHORT_INO_T -# define INO_T uint32 -#elif HAVE_INO_T -# define INO_T ino_t -#else -# define INO_T unsigned -#endif +/* We want to manipulate 64-bit inums. On some systems + * STRUCT_STAT.st_ino can be bigger than an ino_t depending on the + * combination of largefile feature macros. Rather than try to guess, + * we just internally store them in the largest know type. Hopefully + * it's enough. */ +#define INO_T int64 #ifndef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) @@ -390,6 +390,7 @@ static inline int flist_up(struct file_list *flist, int i) #include "proto.h" #include "lib/mdfour.h" #include "lib/permstring.h" +#include "lib/addrinfo.h" /* We have replacement versions of these if they're missing. */ #ifndef HAVE_ASPRINTF @@ -563,12 +564,6 @@ size_t strlcat(char *d, const char *s, size_t bufsize); extern int verbose; -extern struct global_opts { - /** Network address family. **/ - int af_hint; -} global_opts; - - #ifndef HAVE_INET_NTOP const char * inet_ntop(int af, const void *src, char *dst, size_t size);