summaryrefslogtreecommitdiffstats
path: root/src/util/pty/logwtmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pty/logwtmp.c')
-rw-r--r--src/util/pty/logwtmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/pty/logwtmp.c b/src/util/pty/logwtmp.c
index 684033ed2..5b10f4616 100644
--- a/src/util/pty/logwtmp.c
+++ b/src/util/pty/logwtmp.c
@@ -33,11 +33,13 @@
long
pty_logwtmp(const char *tty, const char *user, const char *host)
{
+#ifndef HAVE_LOGWTMP
PTY_STRUCT_UTMPX utx;
int loggingin;
size_t len;
const char *cp;
char utmp_id[5];
+#endif
#ifdef HAVE_LOGWTMP
logwtmp(tty,user,host);