Subject: kern/23114: linux #defines != sys/ufs/ufs/dir.h defines
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/09/2003 23:13:38
>Number:         23114
>Category:       kern
>Synopsis:       linux <dirent.h> #defines != sys/ufs/ufs/dir.h defines
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 09 23:14:00 UTC 2003
>Originator:     j paulson
>Release:        -current
slackware linux 2.4.21 i386
When doing a build with

USETOOLS=yes ./ -U -j3 -m i386 -O /usr/src/netbsd-obj tools kernel=GENERIC.MP

many "warning: DT_blah redefined" warnings are generated.

The #defines for DT_UNKNOWN .. DT_WHT  in ufs/dir.h conflict 
with the #defines from linux's /usr/include/dirent.h.  The names 
appear to resolve to identical values.

Build on a slackware linux box.  Most likely occurs on other linux 
distributions too.
The build-host's <dirent.h> should not be #included by the cross