[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_SYS_LARGEFILE
From: |
Albert Chin |
Subject: |
Re: AC_SYS_LARGEFILE |
Date: |
Thu, 10 Jan 2002 08:38:49 -0600 |
User-agent: |
Mutt/1.2.5i |
On Wed, Jan 09, 2002 at 08:39:03PM +0100, Peter Simons wrote:
> I recently added AC_SYS_LARGEFILE macro to my configure scripts, but I
> encountered an interesting problem on Solaris 8: The configure script
> adds the define "_FILE_OFFSET_BITS=64" to my CPPFLAGS, but once it
> does, <unistd.h> and colleagues don't define open(2) anymore;
> apparently, I have to use open64(2) instead.
>
> Now I wonder: What is the best way to support this? Can't autoconf
> somehow re-define the necessary routines transparently?
So, if your program uses open(2) and you link, you get an unresolved
reference to the symbol open? Using AC_SYS_LARGEFILE should be
transparent to your program.
--
albert chin (address@hidden)