Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 1996 19:37:28 +0200 (MET DST)
From:      J Wunsch <j@ida.interface-business.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/1247: Conflicting header files
Message-ID:  <199605241737.TAA14629@ida.interface-business.de>
Resent-Message-ID: <199605241740.KAA08734@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1247
>Category:       misc
>Synopsis:       Conflicting header files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 24 10:40:01 PDT 1996
>Last-Modified:
>Originator:     J Wunsch
>Organization:
>Release:        FreeBSD 2.2-CURRENT i386
>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.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605241737.TAA14629>