This is needed to get it to build on FreeBSD. There are still a number of
warnings after this patch which I haven't investigated closely (yet).

--- librsync-0.9.2.dist/rsync.h Sun Mar 11 23:25:06 2001
+++ librsync-0.9.2/rsync.h      Mon Mar 12 23:48:50 2001
@@ -39,6 +39,8 @@
  * See \ref intro for an introduction to use of this library.
  */
 
+#include <sys/types.h>
+
 extern char const rs_librsync_version[];
 extern char const rs_licence_string[];
 
@@ -362,7 +364,7 @@
 
 rs_result rs_loadsig_file(FILE *sig_file, rs_signature_t **sumset);
 
-rs_result rs_file_copy_cb(void *arg, rs_long_t, size_t *len, void **buf);
+rs_result rs_file_copy_cb(void *arg, off_t pos, size_t *len, void **buf);
 
 rs_result rs_delta_file(rs_signature_t *, FILE *new_file, FILE *delta_file, 
rs_stats_t *);
 
Thanks,
-- 
Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                          _/  _/   _/                -- D. J. Bernstein
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;

Reply via email to