#ifndef lint
static const char rcsid[] =
- "$Id: itime.c,v 1.16 2001/03/19 13:22:48 stelian Exp $";
+ "$Id: itime.c,v 1.19 2001/06/18 10:58:28 stelian Exp $";
#endif /* not lint */
#include <config.h>
#include <sys/param.h>
#include <sys/time.h>
#ifdef __linux__
+#ifdef HAVE_EXT2FS_EXT2_FS_H
+#include <ext2fs/ext2_fs.h>
+#else
#include <linux/ext2_fs.h>
+#endif
#include <ext2fs/ext2fs.h>
#include <time.h>
#include <bsdcompat.h>
continue;
if (ddp->dd_level >= level)
continue;
-#ifdef __linux__
if (ddp->dd_ddate <= (time_t)spcl.c_ddate)
-#else
- if (ddp->dd_ddate <= spcl.c_ddate)
-#endif
continue;
spcl.c_ddate = ddp->dd_ddate;
lastlevel = ddp->dd_level;
if (ftruncate(fd, ftell(df)))
quit("ftruncate (%s): %s\n", dumpdates, strerror(errno));
(void) fclose(df);
- msg("level %c dump on %s", level,
-#ifdef __linux__
- spcl.c_date == 0 ? "the epoch\n" : ctime4(&spcl.c_date));
-#else
- spcl.c_date == 0 ? "the epoch\n" : ctime(&spcl.c_date));
-#endif
}
static void