Subject: Re: CVS commit: src/usr.bin/who
To: Masao Uebayashi <uebayasi@brains.co.jp>
From: Elad Efrat <elad@NetBSD.org>
List: source-changes
Date: 09/20/2006 13:21:01
IIUC, dm(6) needs this to see if the game can be played (that, and
checking the load averages).

While it is noble that it cares, I think we can safely deprecate it,
keeping the config file and the parser for compliance.

-e.

Masao Uebayashi wrote:
> 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"
>  


-- 
Elad Efrat