--- libinotifytools/src/inotifytools.c.orig Sun Nov 9 21:57:04 2014 +++ libinotifytools/src/inotifytools.c Sat Jan 23 12:50:01 2016 @@ -1314,14 +1314,14 @@ int inotifytools_watch_recursively_with_exclude( char static struct dirent * ent; char * next_file; - static struct stat64 my_stat; + static struct stat my_stat; ent = readdir( dir ); // Watch each directory within this directory while ( ent ) { if ( (0 != strcmp( ent->d_name, "." )) && (0 != strcmp( ent->d_name, ".." )) ) { nasprintf(&next_file,"%s%s", my_path, ent->d_name); - if ( -1 == lstat64( next_file, &my_stat ) ) { + if ( -1 == lstat( next_file, &my_stat ) ) { error = errno; free( next_file ); if ( errno != EACCES ) { @@ -1600,9 +1600,9 @@ int inotifytools_error() { * @internal */ static int isdir( char const * path ) { - static struct stat64 my_stat; + static struct stat my_stat; - if ( -1 == lstat64( path, &my_stat ) ) { + if ( -1 == lstat( path, &my_stat ) ) { if (errno == ENOENT) return 0; fprintf(stderr, "Stat failed on %s: %s\n", path, strerror(errno)); return 0;