Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 1 | #ifndef _BSD_LOGIN_H |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 2 | # define _BSD_LOGIN_H |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 3 | |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 4 | # include "config.h" |
| 5 | # ifndef HAVE_LOGIN |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 6 | |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 7 | # include <utmp.h> |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 8 | |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 9 | # if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) |
| 10 | # include <utmpx.h> |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 11 | |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 12 | void login(struct utmp *utp, struct utmpx *utx); |
| 13 | |
| 14 | # else /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ |
| 15 | |
| 16 | void login(struct utmp *utp); |
| 17 | |
| 18 | # endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ |
| 19 | |
| 20 | # endif /* !HAVE_LOGIN */ |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 21 | |
| 22 | #endif /* _BSD_LOGIN_H */ |