From 31e0666087aa6d906248e7d018417c8cab96e9c5 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 3 Apr 2012 13:28:33 +0000 Subject: [PATCH] Use FileStat instead of stat. git-svn-id: svn://svn.cc65.org/cc65/trunk@5640 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/sim65/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sim65/main.c b/src/sim65/main.c index cddad7887..c0c6c44fd 100644 --- a/src/sim65/main.c +++ b/src/sim65/main.c @@ -37,14 +37,13 @@ #include #include #include -#include -#include #include #include /* common */ #include "abend.h" #include "cmdline.h" +#include "filestat.h" #include "print.h" #include "version.h" #include "xmalloc.h" @@ -128,7 +127,7 @@ static void OptChipDir (const char* Opt attribute ((unused)), const char* Arg) strcpy (Name + DirLen + 1, E->d_name); /* Stat the file */ - if (stat (Name, &S) != 0) { + if (FileStat (Name, &S) != 0) { Warning ("Cannot stat `%s': %s", Name, strerror (errno)); xfree (Name); continue;