Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/rlogind if you are going to use utmpx.h, include it.



details:   https://anonhg.NetBSD.org/src/rev/a3d175037870
branches:  trunk
changeset: 782506:a3d175037870
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 04 21:35:45 2012 +0000

description:
if you are going to use utmpx.h, include it.

diffstat:

 libexec/rlogind/rlogind.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r fe83aa24953c -r a3d175037870 libexec/rlogind/rlogind.c
--- a/libexec/rlogind/rlogind.c Sun Nov 04 21:14:59 2012 +0000
+++ b/libexec/rlogind/rlogind.c Sun Nov 04 21:35:45 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rlogind.c,v 1.41 2011/09/16 16:13:17 plunky Exp $      */
+/*     $NetBSD: rlogind.c,v 1.42 2012/11/04 21:35:45 christos Exp $    */
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -69,7 +69,7 @@
 #if 0
 static char sccsid[] = "@(#)rlogind.c  8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: rlogind.c,v 1.41 2011/09/16 16:13:17 plunky Exp $");
+__RCSID("$NetBSD: rlogind.c,v 1.42 2012/11/04 21:35:45 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -104,6 +104,9 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef SUPPORT_UTMPX
+#include <utmpx.h>
+#endif
 #include <util.h>
 #include "pathnames.h"
 



Home | Main Index | Thread Index | Old Index