]> andersk Git - openssh.git/blobdiff - bsd-login.h
- Moved all the bsd-* and fake-* stuff into new libopenbsd-compat.a
[openssh.git] / bsd-login.h
index 26a8505b3c0ffe0947a3102d652e3de134912b22..f26f470840d17ced9e3b65debe19e364c6b98f88 100644 (file)
@@ -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>
+
+#  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 /* !HAVE_LOGIN */
+#  endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */
+
+# endif /* !HAVE_LOGIN */
 
 #endif /* _BSD_LOGIN_H */
This page took 0.041877 seconds and 4 git commands to generate.