Hi, please try the suggested patch. The change is minimal so it should work for macports and cygwin too, but I have not tried the patch on those systems.
I verified that the patch worked on the following configurations: *ubuntu 11.10, using the 1.3.0 debian package and gcc-snapshot package which reports as $gcc --version (Ubuntu/Linaro 20111010-0ubuntu1) 4.7.0 20111010 (experimental) [trunk revision 179769] *same setup as above, with the default gcc (gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1) *debian squeeze (gcc 4.4.5), using the original source. Please give me feedback that it works for you too, and I will release a new version of rdfind with the change. Thanks, Paul (the rdfind author)
Index: Fileinfo.hh =================================================================== --- Fileinfo.hh (revision 762) +++ Fileinfo.hh (arbetskopia) @@ -11,10 +11,13 @@ #define Fileinfo_hh - +//c++ headers #include <iostream> //for cout etc. #include <cstring> +//os specific headers +#include <sys/types.h> //for off_t and others. + using std::cout; using std::endl; @@ -62,7 +65,7 @@ }; //to store info about the file - typedef off_t filesizetype; + typedef off_t filesizetype; //defined in sys/types.h struct Fileinfostat { filesizetype st_size;//size unsigned long st_ino;//inode Index: Fileinfo.cc =================================================================== --- Fileinfo.cc (revision 762) +++ Fileinfo.cc (arbetskopia) @@ -14,6 +14,7 @@ #include <iostream>//for cout etc #include <sys/stat.h>//for file info #include <errno.h>//for errno +#include <unistd.h>//for unlink etc. #include "Checksum.hh" //checksum calculation