diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-28 00:07:07 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-28 00:07:07 +0000 |
commit | e2fb8d3b0272f9d854449fda115792174112672a (patch) | |
tree | d66fd83e41a8d077df2b2477a3f112ca0d39d8af | |
parent | 981eeed1be3050fbb00a6368fc20ba916f7442e0 (diff) |
20001228
- (bal) Patch to add libutil.h to loginrec.c only if the platform has
libutil.h. Suggested by Pekka Savola <pekka@netcore.fi>
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | loginrec.c | 6 |
3 files changed, 15 insertions, 1 deletions
@@ -1,9 +1,18 @@ | |||
1 | 20001228 | ||
2 | - (bal) Patch to add libutil.h to loginrec.c only if the platform has | ||
3 | libutil.h. Suggested by Pekka Savola <pekka@netcore.fi> | ||
4 | |||
1 | 20001227 | 5 | 20001227 |
2 | - (bal) Typo in configure.in: entut?ent should be endut?ent. Suggested by | 6 | - (bal) Typo in configure.in: entut?ent should be endut?ent. Suggested by |
3 | Takumi Yamane <yamtak@b-session.com> | 7 | Takumi Yamane <yamtak@b-session.com> |
4 | - (bal) Checks for getrlimit(), sysconf(), and setdtablesize(). Patch | 8 | - (bal) Checks for getrlimit(), sysconf(), and setdtablesize(). Patch |
5 | by Corinna Vinschen <vinschen@redhat.com> | 9 | by Corinna Vinschen <vinschen@redhat.com> |
6 | - (djm) Fix catman-do target for non-bash | 10 | - (djm) Fix catman-do target for non-bash |
11 | - (bal) Typo in configure.in: entut?ent should be endut?ent. Suggested by | ||
12 | Takumi Yamane <yamtak@b-session.com> | ||
13 | - (bal) Checks for getrlimit(), sysconf(), and setdtablesize(). Patch | ||
14 | by Corinna Vinschen <vinschen@redhat.com> | ||
15 | - (djm) Fix catman-do target for non-bash | ||
7 | - (bal) Fixed NeXT's lack of CPPFLAGS honoring. | 16 | - (bal) Fixed NeXT's lack of CPPFLAGS honoring. |
8 | - (bal) ssh-keyscan.c: NeXT (and older BSDs) don't support getrlimit() w/ | 17 | - (bal) ssh-keyscan.c: NeXT (and older BSDs) don't support getrlimit() w/ |
9 | 'RLIMIT_NOFILE' | 18 | 'RLIMIT_NOFILE' |
diff --git a/configure.in b/configure.in index 37a2a5a53..08cd9e125 100644 --- a/configure.in +++ b/configure.in | |||
@@ -309,6 +309,7 @@ AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock fchmod fre | |||
309 | dnl Checks for time functions | 309 | dnl Checks for time functions |
310 | AC_CHECK_FUNCS(gettimeofday time) | 310 | AC_CHECK_FUNCS(gettimeofday time) |
311 | dnl Checks for libutil functions | 311 | dnl Checks for libutil functions |
312 | AC_CHECK_HEADERS(libutil.h) | ||
312 | AC_CHECK_FUNCS(login logout updwtmp logwtmp) | 313 | AC_CHECK_FUNCS(login logout updwtmp logwtmp) |
313 | dnl Checks for utmp functions | 314 | dnl Checks for utmp functions |
314 | AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent) | 315 | AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent) |
diff --git a/loginrec.c b/loginrec.c index 224866128..4afe6fec1 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -161,12 +161,16 @@ | |||
161 | #include "xmalloc.h" | 161 | #include "xmalloc.h" |
162 | #include "loginrec.h" | 162 | #include "loginrec.h" |
163 | 163 | ||
164 | RCSID("$Id: loginrec.c,v 1.28 2000/12/01 21:19:51 mouring Exp $"); | 164 | RCSID("$Id: loginrec.c,v 1.29 2000/12/28 00:07:07 mouring Exp $"); |
165 | 165 | ||
166 | #ifdef HAVE_UTIL_H | 166 | #ifdef HAVE_UTIL_H |
167 | # include <util.h> | 167 | # include <util.h> |
168 | #endif | 168 | #endif |
169 | 169 | ||
170 | #ifdef HAVE_LIBUTIL_H | ||
171 | # include <libutil.h> | ||
172 | #endif | ||
173 | |||
170 | /** | 174 | /** |
171 | ** prototypes for helper functions in this file | 175 | ** prototypes for helper functions in this file |
172 | **/ | 176 | **/ |