From: Jim Meyering Date: Fri, 27 Jan 1995 17:16:56 +0000 (+0000) Subject: Declare errno if it's not defined. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9086e96e3d45104ca8e65e625d4e315bee326bd;p=pspp Declare errno if it's not defined. Rename SAFE_STAT to safe_stat. --- diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 00d6a95696..499040c5b3 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -59,7 +59,7 @@ gid_t getegid (); #endif /* not POSIX_VERSION */ #include -#ifndef STDC_HEADERS +#ifndef errno extern int errno; #endif @@ -177,7 +177,7 @@ euidaccess (path, mode) return access (path, mode); } - if (SAFE_STAT (path, &stats)) + if (safe_stat (path, &stats)) return -1; return eaccess_stat (&stats, mode, path);