Subject: machine/intr.h includes sys/queue.h unconditionally
To: None <port-alpha@netbsd.org>
From: Juergen Weiss <weiss@Uni-Mainz.DE>
List: port-alpha
Date: 12/22/1998 10:11:34
I just observered that an application could not be compiled on
NetBSD 1.3.2 alpha anymore, because it includes netdbm.h and
defined and uses macros LIST_FIRST, LIST_NEXT. Problem still
exists in current. Problem did not exist on NetBSD 1.3 alpha
and does not exist on NetBSD 1.3.2 i386 and sparc.
Over a long include chain, netdbm.h includes machine/intr.h,
which includes sys/queue.h unconditionally. In sys/queue.h
the macros LIST_FIRST, LIST_NEXT are defined. These are
needed in machine/intr.h only, if _KERNEL is defined.
Should this get fixed or should I change the macros in my
application?
Juergen Weiss
--
Juergen Weiss | Universitaet Mainz, Zentrum f"ur Datenverarbeitung,
weiss@uni-mainz.de | 55099 Mainz, Tel: 06131/39-6361, FAX: 06131/39-6407