changeset 384:a239634fd7c0

Declare errno if it's not defined. Rename SAFE_STAT to safe_stat.
author Jim Meyering <jim@meyering.net>
date Fri, 27 Jan 1995 17:16:56 +0000
parents 9f511a3fbfc3
children f4cb6bbc01d4
files lib/euidaccess.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/euidaccess.c
+++ b/lib/euidaccess.c
@@ -59,7 +59,7 @@
 #endif /* not POSIX_VERSION */
 
 #include <errno.h>
-#ifndef STDC_HEADERS
+#ifndef errno
 extern int errno;
 #endif
 
@@ -177,7 +177,7 @@
       return access (path, mode);
     }
 
-  if (SAFE_STAT (path, &stats))
+  if (safe_stat (path, &stats))
     return -1;
 
   return eaccess_stat (&stats, mode, path);