Wed Jul 27 12:52:04 1994 Mark Eichin (eichin@tweedledumber.cygnus.com)
+ * login.c: HAVE_TTYENT_H.
+ * configure.in: add ttyent.h to HEADERS test.
+
* krshd.c: HAVE_SYS_LABEL_H, which seems to be SunOS 4 specific.
+ * krlogind.c: ditto.
* configure.in: test for add sys/label.h to HEADERS test.
* krcp.c (rsource): USE_DIRENT_H.
AC_HAVE_LIBRARY(nsl)
AC_FUNC_CHECK(utimes,AC_DEFINE(HAS_UTIMES))
AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT))
-AC_HAVE_HEADERS(sys/filio.h unistd.h sys/label.h)
+AC_HAVE_HEADERS(sys/filio.h unistd.h sys/label.h ttyent.h)
CHECK_DIRENT
CHECK_FCNTL
AC_COMPILE_CHECK([F_SETOWN],
#include <errno.h>
#include <pwd.h>
-#ifdef sun
+#ifdef HAVE_SYS_LABEL_H
+/* only SunOS 4? */
#include <sys/label.h>
#include <sys/audit.h>
#include <pwdadj.h>
* $Id$
*/
-#ifndef lint
-static char rcsid_login_c[] = "$Id$";
-#endif lint
-
/*
* Copyright (c) 1980, 1987, 1988 The Regents of the University of California.
* All rights reserved.
#endif
#include <errno.h>
-#ifndef NOTTYENT
+#ifdef HAVE_TTYENT_H
#include <ttyent.h>
-#endif /* NOTTYENT */
+#endif
#include <syslog.h>
#include <grp.h>
#include <pwd.h>