Use the configure output to select an lstat, and to select a method
[sgt/agedu] / agedu.h
diff --git a/agedu.h b/agedu.h
index 4f6d874..ca53f1e 100644 (file)
--- a/agedu.h
+++ b/agedu.h
 #define lenof(x) (sizeof((x))/sizeof(*(x)))
 
 extern char pathsep;
+
+#ifdef HAVE_LSTAT64
+#define STRUCT_STAT struct stat64
+#define LSTAT lstat64
+#else
+#define STRUCT_STAT struct stat
+#define LSTAT lstat
+#endif