summaryrefslogtreecommitdiff
path: root/bsd-login.h
blob: f26f470840d17ced9e3b65debe19e364c6b98f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _BSD_LOGIN_H
# define _BSD_LOGIN_H

# include "config.h"
# ifndef HAVE_LOGIN

#  include <utmp.h>

#  if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
#   include <utmpx.h>

void login(struct utmp *utp, struct utmpx *utx);

#   else /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */

void login(struct utmp *utp);

#  endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */

# endif /* !HAVE_LOGIN */

#endif /* _BSD_LOGIN_H */