From j@ida.interface-business.de  Fri May 24 10:36:16 1996
Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.101])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id KAA08293
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 May 1996 10:36:10 -0700 (PDT)
Received: from ida.interface-business.de (ida.interface-business.de [193.101.57.203]) by innocence.interface-business.de (8.6.11/8.6.9) with SMTP id TAA24054 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 24 May 1996 19:40:53 +0200
Received: (from j@localhost) by ida.interface-business.de (8.7.3/8.7.3) id TAA14629; Fri, 24 May 1996 19:37:28 +0200 (MET DST)
Message-Id: <199605241737.TAA14629@ida.interface-business.de>
Date: Fri, 24 May 1996 19:37:28 +0200 (MET DST)
From: J Wunsch <j@ida.interface-business.de>
Reply-To: joerg_wunsch@interface-business.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: Conflicting header files
X-Send-Pr-Version: 3.2

>Number:         1247
>Category:       misc
>Synopsis:       Conflicting header files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yokota
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 24 10:40:01 PDT 1996
>Closed-Date:    Thu Mar 4 08:33:08 PST 1999
>Last-Modified:  Thu Mar  4 08:33:24 PST 1999
>Originator:     J Wunsch
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
>Environment:

all FreeBSD's until now

>Description:

The definitions of `key_t' in <sys/types.h> and <machine/console.h>
conflict when used in a C++ environment.

>How-To-Repeat:

Compile something that included both headers under C++.

In file included from bsdsrc/kbd.cc:29:
/usr/include/machine/console.h:151: conflicting types for `struct key_t'
/usr/include/sys/types.h:70: previous declaration as `typedef long int key_t'
bsdsrc/kbd.cc:127: warning: `int KbdIsConsole()' defined but not used
*** Error code 1

Stop.

>Fix:
	
struct key_t should perhaps renamed into something else.  It's only
used in syscons and its related utilities.  sys/types.h's key_t is
used by the SysV IPC implementation, and thus part of the API.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bde 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Tue Sep 24 17:29:49 PDT 1996 
Responsible-Changed-Why:  
Mr. /usr/include 
Responsible-Changed-From-To: bde->kato 
Responsible-Changed-By: phk 
Responsible-Changed-When: Mon Apr 13 02:00:52 PDT 1998 
Responsible-Changed-Why:  
Kato, can you rename key_t in syscons to something else ? 
Responsible-Changed-From-To: kato->yokota 
Responsible-Changed-By: phk 
Responsible-Changed-When: Mon Apr 13 02:42:35 PDT 1998 
Responsible-Changed-Why:  
Sorry, wrong man! 
yokota, can you take a peek at this ? 

From: Sheldon Hearn <sheldonh@iafrica.com>
To: freebsd-gnats-submit@freebsd.org
Cc: J Wunsch <joerg_wunsch@interface-business.de>, yokota@freebsd.org
Subject: Re: misc/1247: Conflicting header files
Date: Thu, 04 Mar 1999 00:33:17 +0200

 Hi gents,
 
 I'm pretty sure the conflicting key_t in /usr/include/machine/console.h
 went away with yakota's new console driver.
 
 Let me know if I can add this one to my list of PR closure candidates.
 
 Thanks,
 Sheldon.
 

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: Sheldon Hearn <sheldonh@iafrica.com>
Cc: freebsd-gnats-submit@freebsd.org,
	J Wunsch <joerg_wunsch@interface-business.de>,
	yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: misc/1247: Conflicting header files 
Date: Thu, 04 Mar 1999 18:58:23 +0900

 >I'm pretty sure the conflicting key_t in /usr/include/machine/console.h
 >went away with yakota's new console driver.
 
 Yes, it did.  console.h doesn't define key_t anymore.
 
 Kazu
 
 >Let me know if I can add this one to my list of PR closure candidates.
 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Thu Mar 4 08:33:08 PST 1999 
State-Changed-Why:  
Joerg has closed his own PR. 
>Unformatted:
