Be willing to follow a symlink if the user specifies one as the root
[sgt/agedu] / agedu.h
diff --git a/agedu.h b/agedu.h
index fecce2e..2e6cc51 100644 (file)
--- a/agedu.h
+++ b/agedu.h
 
 extern char pathsep;
 
-#ifdef HAVE_LSTAT64
+#if defined HAVE_LSTAT64 && HAVE_STAT64
 #define STRUCT_STAT struct stat64
 #define LSTAT lstat64
+#define STAT stat64
 #else
 #define STRUCT_STAT struct stat
 #define LSTAT lstat
+#define STAT stat
 #endif