NetBSD Problem Report #46
From gnats Thu Dec 16 14:31:27 1993
Received: from ishmael.ameslab.gov (ishmael.ameslab.gov [147.155.40.54]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with ESMTP id OAA04907 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 16 Dec 1993 14:31:21 -0800
Message-Id: <199312162236.QAA13550@ishmael.ameslab.gov>
Date: Thu, 16 Dec 1993 16:36:54 -0600
From: deaven@ishmael.ameslab.gov
Reply-To: deaven@ishmael.ameslab.gov
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: utmp.h requires sys/types.h to precede it
X-Send-Pr-Version: 3.01.6
>Number: 46
>Category: lib
>Synopsis: utmp.h requires sys/types.h to precede it
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 16 14:35:02 +0000 1993
>Closed-Date: Thu Dec 16 15:27:39 +0000 1993
>Last-Modified:
>Originator: David Deaven
>Release: 0.9
>Organization:
Ames Laboratory USDOE
David Deaven deaven@ishmael.ameslab.gov
A504 Physics tel 515-294-6878
Ames Laboratory fax 515-294-0689
Ames IA 50011
>Environment:
System: NetBSD ishmael.ameslab.gov 0.9 BLACKRAT#0 i386
>Description:
Compilation of a program which includes utmp.h before sys/types.h
fails since utmp.h requires a defined time_t without checking to make
sure it's there.
>How-To-Repeat:
Any compilation with the above #include order.
>Fix:
*** /usr/include/utmp.h.orig Thu Dec 16 16:29:51 1993
--- /usr/include/utmp.h Thu Dec 16 16:31:08 1993
***************
*** 36,41 ****
--- 36,45 ----
#ifndef _UTMP_H_
#define _UTMP_H_
+ #ifndef _SYS_TYPES_H_
+ #include <sys/types.h>
+ #endif
+
#define _PATH_UTMP "/var/run/utmp"
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Dec 16 15:27:39 1993
State-Changed-Why:
I've changed utmp.h to include <sys/types.h>.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.