+1998-05-26 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * logwtmp.c: Include paths.h if present, and use _PATH_WTMP to
+ determine WTMPFILE.
+
Fri May 8 18:06:52 1998 Theodore Y. Ts'o <tytso@mit.edu>
* ftpcmd.y (cmd): Fix Y2K problem in the MDTM command.
#include <unistd.h>
#include <string.h>
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#endif
+
#ifdef WTMP_FILE
#define WTMPFILE WTMP_FILE
-#endif
+#else
+#ifdef _PATH_WTMP
+#define WTMPFILE _PATH_WTMP
+#endif /* _PATH_WTMP */
+#endif /* WTMP_FILE */
#ifndef WTMPFILE
#define WTMPFILE "/usr/adm/wtmp"