Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 1999 12:00:51 +0100
From:      Matthias Buelow <token@wuff.mayn.de>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>, freebsd-questions@FreeBSD.ORG
Subject:   Re: This compiles under 2.2 but not 3.3
Message-ID:  <19991123120051.A16761@wuff.mayn.de>
In-Reply-To: <86n1s5or9b.fsf@localhost.hell.gr>; from Giorgos Keramidas on Tue, Nov 23, 1999 at 04:50:40AM %2B0200
References:  <Pine.BSF.3.95q.991122123451.10222A-100000@federation.addy.com> <86n1s5or9b.fsf@localhost.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas wrote:
>Cliff Addy <fbsdlist@federation.addy.com> writes:
>
>> I have a small program, the sum total of the source code is:
>> 
>> #include <stdio.h>
>> #include <machine/cpufunc.h>
>> 
>> 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 <unistd.h> before <machine/cpufunc.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991123120051.A16761>