Declare errno if it's not defined.
authorJim Meyering <jim@meyering.net>
Fri, 27 Jan 1995 17:16:56 +0000 (17:16 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 27 Jan 1995 17:16:56 +0000 (17:16 +0000)
Rename SAFE_STAT to safe_stat.

lib/euidaccess.c

index 00d6a95..499040c 100644 (file)
@@ -59,7 +59,7 @@ gid_t getegid ();
 #endif /* not POSIX_VERSION */
 
 #include <errno.h>
-#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);