From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 18:55:22 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9AE916A418 for ; Thu, 27 Dec 2007 18:55:22 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 09D6113C455 for ; Thu, 27 Dec 2007 18:55:21 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1J7xuB-000HBs-U1; Thu, 27 Dec 2007 21:56:31 +0300 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 042CC6742; Thu, 27 Dec 2007 21:55:09 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 13F3817030; Thu, 27 Dec 2007 21:55:21 +0300 (MSK) Date: Thu, 27 Dec 2007 21:55:21 +0300 From: Dmitry Marakasov To: Rob Belics Message-ID: <20071227185520.GA53485@hades.panopticon> Mail-Followup-To: Rob Belics , freebsd-ports@freebsd.org References: <4773E79B.1090904@charter.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <4773E79B.1090904@charter.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-ports@freebsd.org Subject: Re: Porting Windows program datatype problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 18:55:22 -0000 * Rob Belics (rob_belics@charter.net) wrote: > There is a Windows open source program I would like to port to FreeBSD. It > seems to compile OK, using gcc, but chokes on MS/Windows only type data > types like 'ulong'. What would be the easiest way to fix/convert these, or > must it be done manually? You can add compatibility header with typedef unsigned long ulong; That is easy and fast, and also least painful when you need to update you port to new version of original sourcecode. -- Dmitry A. Marakasov | jabber: amdmi3@jabber.ru amdmi3@amdmi3.ru | http://www.amdmi3.ru