bin/55846: <sys/systm.h> and <sys/types.h> conflict for major()

Bruce Evans bde at zeta.org.au
Fri Aug 22 03:30:16 PDT 2003


The following reply was made to PR bin/55846; it has been noted by GNATS.

From: Bruce Evans <bde at zeta.org.au>
To: Darren Reed <darrenr at freebsd.org>
Cc: FreeBSD-gnats-submit at freebsd.org, freebsd-bugs at freebsd.org
Subject: Re: bin/55846: <sys/systm.h> and <sys/types.h> conflict for major()
Date: Fri, 22 Aug 2003 20:25:02 +1000 (EST)

 On Thu, 21 Aug 2003, Darren Reed wrote:
 
 > >Description:
 > Including <sys/types.h> and <sys/systm.h> for non-kernel compiles
 > causes the following problem:
 > /usr/include/sys/systm.h:346: syntax error before `int'
 > /usr/include/sys/systm.h:347: syntax error before `int'
 > /usr/include/sys/systm.h:348: syntax error before `('
 
 Don't do that then.  <sys/systm.h> is kernel-only.
 
 Bruce


More information about the freebsd-bugs mailing list