Subject: HAVE_U_SHORT
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 11/15/2004 15:50:07
I am getting errors of the form:

/usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* to be defined.
In file included from /usr/src/tools/compat/obj.i386/config.h:114,
                 from /usr/src/usr.bin/lex/flexdef.h:34,
                 from /usr/src/usr.bin/lex/ecs.c:31:
/usr/src/tools/compat/compat_defs.h:143: warning: redefinition of `u_char'
/usr/include/sys/types.h:101: warning: `u_char' previously declared here
/usr/src/tools/compat/compat_defs.h:147: warning: redefinition of `u_int'
/usr/include/sys/types.h:103: warning: `u_int' previously declared here
/usr/src/tools/compat/compat_defs.h:151: warning: redefinition of `u_short'
/usr/include/sys/types.h:102: warning: `u_short' previously declared here


yet none of those files seem to have changed recently.
src/tools/compat still has the AC_CHECK_TYPES check for u_short, and
yet writes out a nbtool_config.h with /* #undef HAVE_U_SHORT */

I haven't spotted the '#define _NETBSD_SOURCE' anywhere either..

Maybe some of you know if anything changed? (I did cleandir, but didn't
newfs obj)

Cheers,

Patrick
(13:11 GMT code)