From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 04:29:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D6961065689 for ; Wed, 1 Oct 2008 04:29:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 109788FC13 for ; Wed, 1 Oct 2008 04:29:47 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m914Tj9b041794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Sep 2008 23:29:45 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id m914ThkW041791; Tue, 30 Sep 2008 23:29:43 -0500 (CDT) (envelope-from dan) Date: Tue, 30 Sep 2008 23:29:43 -0500 From: Dan Nelson To: hibablu Message-ID: <20081001042943.GJ86326@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Definition of off64_t X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2008 04:29:48 -0000 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