Date: Tue, 30 Sep 2008 23:29:43 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: hibablu <c.discussions@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Definition of off64_t Message-ID: <20081001042943.GJ86326@dan.emsphone.com> In-Reply-To: <bb1466310809301809p7fcff365g3b3749f5bb84c082@mail.gmail.com> References: <bb1466310809301809p7fcff365g3b3749f5bb84c082@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 30), hibablu said: > I am trying to port an application written on Linux to FreeBSD. > During compile, I am getting an error saying that off64_t is not > defined. Which header file do I need to include to get the definition > for off64_t ? There is no need for an off64_t on FreeBSD. The program should use off_t instead, and on Linux, they should add the compiler flags "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" so that off_t is 64 bits on Linux as well. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081001042943.GJ86326>