Date: Wed, 2 Jun 1999 05:08:44 -0500 From: Chris Costello <chris@calldei.com> To: Josh2 Lists <josh2@marvin.albury.net.au> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: cant compile with cpufunc.h, barfs. Message-ID: <19990602050844.D34732@holly.dyndns.org> In-Reply-To: <XFMail.990602163651.josh2@marvin.albury.net.au>; from Josh2 Lists on Wed, Jun 02, 1999 at 04:36:51PM %2B1000 References: <XFMail.990602163651.josh2@marvin.albury.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 2, 1999, Josh2 Lists wrote: > Hi there. > I have a simple prog that writes to a bit on the parallel port. > It compiles fine under 2.2.x (tested on 2.2.5 and 2.2.8) BUT > the compiler barfs over <machine/cpufunc.h>. with 3.1-release. > I am trying to use outb(base,onoff). > > bash-2.02$ cc -o out1 outF.c > In file included from outF.c:10: > /usr/include/machine/cpufunc.h:155: parse error before `inbc' > /usr/include/machine/cpufunc.h:155: parse error before `port' > /usr/include/machine/cpufunc.h: In function `inbc': You need to include <sys/param.h> or <sys/types.h>. Both include <sys/cdefs.h> which #defines something you need to be able to use cpufunc.h. -- Chris Costello <chris@calldei.com> If a program is useful, it must be changed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990602050844.D34732>