implicit declaration warnings
mouring at etoh.eviladmin.org
mouring at etoh.eviladmin.org
Thu Dec 28 06:15:55 EST 2000
On Wed, 27 Dec 2000, Pekka Savola wrote:
> Hi,
>
> When I tested the latest snapshot on FreeBSD 4.2, I noticed some implicit
> declaration warnings I didn't recall seeing on Linux.
>
Hmm.. I think the following patch may be what you wanted.
- Ben
--- ../openssh/loginrec.c Fri Dec 1 15:19:51 2000
+++ loginrec.c Wed Dec 27 13:11:13 2000
@@ -167,6 +167,10 @@
# include <util.h>
#endif
+#ifdef HAVE_LIBUTIL_H
+# include <libutil.h>
+#endif
+
/**
** prototypes for helper functions in this file
**/
--- ../openssh/configure.in Wed Dec 27 00:52:07 2000
+++ configure.in Wed Dec 27 13:08:18 2000
@@ -309,6 +308,7 @@
dnl Checks for time functions
AC_CHECK_FUNCS(gettimeofday time)
dnl Checks for libutil functions
+AC_CHECK_HEADERS(libutil.h)
AC_CHECK_FUNCS(login logout updwtmp logwtmp)
dnl Checks for utmp functions
AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent)
More information about the openssh-unix-dev
mailing list