X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/100b62bb6936c3fb3eea0460885417277b979046..4e0fcd85aecc3f93aa4abb3ae01e7b1ea1ea4d12:/getfsdev.c diff --git a/getfsdev.c b/getfsdev.c index 6ccfceb3..3b113bd4 100644 --- a/getfsdev.c +++ b/getfsdev.c @@ -3,9 +3,15 @@ int main(int argc, char *argv[]) { STRUCT_STAT st; + int ret; while (--argc > 0) { - if (stat(*++argv, &st) < 0) { +#ifdef USE_STAT64_FUNCS + ret = stat64(*++argv, &st); +#else + ret = stat(*++argv, &st); +#endif + if (ret < 0) { fprintf(stderr, "Unable to stat `%s'\n", *argv); exit(1); }