Definition of off64_t

Dan Nelson dnelson at allantgroup.com
Wed Oct 1 04:29:48 UTC 2008


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 at allantgroup.com


More information about the freebsd-questions mailing list