Source-Changes archive

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

Re: CVS commit: src/usr.bin/who



src/games/dm/dm.c build fails with:

In file included from /src/NetBSD/src.TNF/games/dm/dm.c:61:
/src/NetBSD/src.TNF/usr.bin/who/utmpentry.h:53: error: '_UTX_USERSIZE' 
undeclared here (not in a function)
/src/NetBSD/src.TNF/usr.bin/who/utmpentry.h:54: error: '_UTX_LINESIZE' 
undeclared here (not in a function)
/src/NetBSD/src.TNF/usr.bin/who/utmpentry.h:55: error: '_UTX_HOSTSIZE' 
undeclared here (not in a function)

This patch fixes build.  Or, #include <utmpx.h> in utmpentry.h?

Masao

Index: ../games/dm/dm.c
===================================================================
RCS file: /cvsroot/src/games/dm/dm.c,v
retrieving revision 1.23
diff -u -r1.23 dm.c
--- ../games/dm/dm.c    25 May 2006 07:11:54 -0000      1.23
+++ ../games/dm/dm.c    20 Sep 2006 10:12:22 -0000
@@ -58,6 +58,7 @@
 #include <time.h>
 #include <unistd.h>
 
+#include <utmpx.h>
 #include "utmpentry.h"
 #include "pathnames.h"
 



Home | Main Index | Thread Index | Old Index