Re: tests/rwblob_EPT_bilevel.sh on HP-UX/PA-RISC

Albert Chin <[email protected]>
Newsgroups gmane.comp.video.image-magick.devel
Message-ID <[email protected]>
On Fri, Feb 09, 2007 at 02:38:31PM -0600, [email protected] wrote:
> > Remove this from both files solves the problem
> 
> Fseeko() accepts an off_t rather than long which is needed for large file
> support (i.t. off_t can be 64-bit whereas long is 32-bit).  If you have the
> time, try changing fseek to fseeko and ftell to ftello in magick/blob.c
> and see if the error still occurs.  If so this may indicate a problem
> with using fseeko/ftello on HP PA-RISC.

Why not just use fseeko/ftello? If a platform does not have these
functions, then it doesn't have LFS and you can just:
  #define fseeko fseek
  #define ftello ftell

And, if a platform does have these functions, regardless of whether or
not LFS is defined, aren't they safe to use?

I'll test with fseeko/ftello though.

-- 
albert chin ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.