[GRASS5] Problem with r.fill.dir

Justin Hickey jhickey at hpcc.nectec.or.th
Mon May 14 03:00:37 EDT 2001


Hi Roger

"Roger S. Miller" wrote:
> 
> Thanks for the pointer.  The direct solution here is to remove the 
> line that includes error.h.  I thought I did that before the copy
> went to CVS, but I guess I didn't.  <error.h> was originally included
> to check on a condition that never occured, so I removed the check. 
> <error.h> isn't needed in the current version.

It compiles fine on SGI's now.
 
> The code is written to use open, read, write, and lseek, (all POSIX) 
> and I don't think I can switch lseek to fseek (ANSI) without changing
> all the other references to their ANSI counterparts.  If there are
> ongoing problems, then I'll do it, but then the same change will be
> needed in a lot of the rest of the GRASS code.

Sorry, it was my problem here. It's been a while since I wrote low-level
I/O programs and I did not recognize lseek. I thought that the use of
lseek required the inclusion of a non-standard header file (error.h),
so, I looked it up in my C book which does not mention POSIX and as a
result, made my suggestion in my previous mail. However, since it is
POSIX I retract my original suggestion.

Thanks for the fix.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list