From owner-freebsd-questions Tue Nov 23 3: 2:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mayn.de (airbus.mayn.de [194.145.150.13]) by hub.freebsd.org (Postfix) with SMTP id AA59714BEC for ; Tue, 23 Nov 1999 03:02:39 -0800 (PST) (envelope-from token@wuff.mayn.de) Received: (qmail 20717 invoked from network); 23 Nov 1999 11:02:34 -0000 Received: from wuff.mayn.de (qmailr@194.145.150.17) by airbus.mayn.de with SMTP; 23 Nov 1999 11:02:34 -0000 Received: (qmail 20268 invoked by uid 603); 23 Nov 1999 11:00:51 -0000 Message-ID: <19991123120051.A16761@wuff.mayn.de> Date: Tue, 23 Nov 1999 12:00:51 +0100 From: Matthias Buelow To: Giorgos Keramidas , freebsd-questions@FreeBSD.ORG Subject: Re: This compiles under 2.2 but not 3.3 References: <86n1s5or9b.fsf@localhost.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <86n1s5or9b.fsf@localhost.hell.gr>; from Giorgos Keramidas on Tue, Nov 23, 1999 at 04:50:40AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Giorgos Keramidas wrote: >Cliff Addy writes: > >> I have a small program, the sum total of the source code is: >> >> #include >> #include >> >> void main() >> { >> char value; >> >> value = inb (0x180); >> } >> >> This compiles fine under 2.2.2 but blows up with syntax errors in >> cpufunc.h under 3.3, the first of which is: >> >> /usr/include/machine/cpufunc.h:155: parse error before `inbc' > >One of the first error lines notes: > > /usr/include/machine/cpufunc.h:157: `u_char' undeclared > >Including before solves this problem, and >it all compiles like a charm :) And how could you miss the blatant "void main()" bug? mkb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message