summaryrefslogtreecommitdiffstats
path: root/bsd-login.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-login.h')
-rw-r--r--bsd-login.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/bsd-login.h b/bsd-login.h
index 8891ae34..f26f4708 100644
--- a/bsd-login.h
+++ b/bsd-login.h
@@ -1,13 +1,22 @@
#ifndef _BSD_LOGIN_H
-#define _BSD_LOGIN_H
+# define _BSD_LOGIN_H
-#include "config.h"
-#ifndef HAVE_LOGIN
+# include "config.h"
+# ifndef HAVE_LOGIN
-#include <utmp.h>
+# include <utmp.h>
-void login(struct UTMP_STR *utp);
+# if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
+# include <utmpx.h>
-#endif /* !HAVE_LOGIN */
+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 */