NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/49696: circular includes in sys/
>Number: 49696
>Category: lib
>Synopsis: circular includes in sys/
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 26 03:55:00 +0000 2015
>Originator: David A. Holland
>Release: NetBSD 7.99.4 (20150117)
>Organization:
>Environment:
System: NetBSD macaran 7.99.1 NetBSD 7.99.1 (MACARAN) #22: Fri Oct 24 18:32:54 EDT 2014 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:
The following include cycle exists:
sys/types.h -> machine/endian.h -> sys/endian.h ->
machine/bswap.h -> sys/bswap.h -> sys/types.h
(as well as a shorter one that doesn't involve bswap.h)
It all works, at the moment, but it's ugly and fragile.
>How-To-Repeat:
grep
>Fix:
torches and pitchforks
Home |
Main Index |
Thread Index |
Old Index