Re: [Newbie] Problems compiling ascii pfiles

From: Tony Robbins (
Date: 05/17/00

On Wed, 17 May 2000, SodaPop wrote:

> Hi,
> I have patched ascii pfiles into circle30bpl15(It required some manual
> patching).
> Anyway when I try to compile I get the following error:
> gcc -c -g -O2 -Wall  diskio.c
> diskio.c: In function `fbopen_for_read':
> diskio.c:144: structure has no member named `_fileno'
> diskio.c: In function `fbcat':
> diskio.c:324: structure has no member named `_fileno'
> Now, Im sure the answers is really obvious and im just overlooking it.

Heh, the answer isn't really tremendously obvious, so feel good or
something.  :)

On some machines, the file structure member which has the file number
(file descriptor?  I don't recall) renamed.  While the patch may expect
_fileno, in actuality, your machine probably has the same data stored in
the variable _file.  So change _fileno to _file on those lines and all
should be good.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 04/10/01 PDT