(canonicalize_filename_mode): Remove #ifdef S_ISLNK, now that
S_ISLNK is guaranteed to be defined (via stat-macros.h).
#include <errno.h>
#include "path-concat.h"
+#include "stat-macros.h"
#include "xalloc.h"
#include "xgetcwd.h"
st.st_mode = 0;
}
-# ifdef S_ISLNK
if (S_ISLNK (st.st_mode)) do
{
char *buf;
free (buf);
} while (0);
else
-# endif /* S_ISLNK */
- if (!S_ISDIR (st.st_mode) && *end && (can_mode != CAN_MISSING))
{
- errno = ENOTDIR;
- goto error;
+ if (!S_ISDIR (st.st_mode) && *end && (can_mode != CAN_MISSING))
+ {
+ errno = ENOTDIR;
+ goto error;
+ }
}
}
}