Call the right stat function based on USE_STAT64_FUNCS.
authorWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 20:43:09 +0000 (20:43 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 20:43:09 +0000 (20:43 +0000)
getfsdev.c

index 6ccfceb..85928a6 100644 (file)
@@ -3,9 +3,15 @@
  int main(int argc, char *argv[])
 {
        STRUCT_STAT st;
+       int ret;
 
        while (--argc > 0) {
-               if (stat(*++argv, &st) < 0) {
+#if 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);
                }