#if defined(_MSC_VER)
/* Microsoft compiler */
# include <io.h>
-# define R_OK 4
#else
/* Anyone else */
# include <unistd.h>
strcpy (PathName + Count, File);
/* Check if this file exists */
- if (access (PathName, R_OK) == 0) {
+ if (access (PathName, 0) == 0) {
/* The file exists */
return xstrdup (PathName);
}