From 422696201acf424dc0c46558f993d27e86bddd1b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 28 Jan 2005 20:43:09 +0000 Subject: [PATCH] Call the right stat function based on USE_STAT64_FUNCS. --- getfsdev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/getfsdev.c b/getfsdev.c index 6ccfceb3..85928a60 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) { +#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); } -- 2.34.1