~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oh, and update the man page.
[sgt/agedu]
/
agedu.h
diff --git
a/agedu.h
b/agedu.h
index
fecce2e
..
5a4e72b
100644
(file)
--- a/
agedu.h
+++ b/
agedu.h
@@
-97,10
+97,15
@@
extern char pathsep;
extern char pathsep;
-#if
def HAVE_L
STAT64
+#if
defined HAVE_LSTAT64 && HAVE_
STAT64
#define STRUCT_STAT struct stat64
#define LSTAT lstat64
#define STRUCT_STAT struct stat64
#define LSTAT lstat64
+#define STAT stat64
#else
#define STRUCT_STAT struct stat
#define LSTAT lstat
#else
#define STRUCT_STAT struct stat
#define LSTAT lstat
+#define STAT stat
#endif
#endif
+
+#define max(x,y) ( (x) > (y) ? (x) : (y) )
+#define min(x,y) ( (x) < (y) ? (x) : (y) )