[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Bug: compile error on misc3d.c
From: |
Achim Mueller |
Subject: |
Re: [Bug-gnubg] Bug: compile error on misc3d.c |
Date: |
Sat, 17 Apr 2004 11:28:56 +0200 |
User-agent: |
Mutt/1.5.6i |
* Joern Thyssen wrote on 17 Apr 2004:
> On Sat, Apr 17, 2004 at 07:37:16AM +0200, Achim Mueller wrote
> > Hi all,
> >
> > I get an error while compiling cvs:
> >
> > misc3d.c: In function `FindTexture':
> > misc3d.c:286: error: `R_OK' undeclared (first use in this function)
> > misc3d.c:286: error: (Each undeclared identifier is reported only
> > once
> > misc3d.c:286: error: for each function it appears in.)
> > make[2]: *** [misc3d.o] Fehler 1
>
> Try adding unistd.h:
>
> #if HAVE_UNISTD_H
> #include <unistd.h>
> #endif
That worked (of course ;-) ).
> > And before I had to change misc3d.c (line 28, #include <io.h>),
> > because it couldn't find io.h.
>
> Perhaps io.h should only be included for windows?
There are two io.h on my system in /usr/include/asm and
/usr/include/sys. Changing "#include <io.h>" to "#include
<sys/io.h>" did help.
Ciao
Achim
--
If you want to make sure that I'll read your e-mail
please avoid HTML and use a real name. Otherwise I
can't guarantee I'll receive it.
achim mueller, anne-frank-str. 25, D-48431 rheine
+49 (0)5971 83767, +49 (0)163 8458340
-------------------------------------------------
pgp/gnupg key: 1024D/5DF3A722 (wwwkeys.de.pgp.net)
pgpaaiqvOOYEH.pgp
Description: PGP signature