From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 18:57:29 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 B4D6216A469 for ; Thu, 27 Dec 2007 18:57:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta2.srv.hcvlny.cv.net (mta2.srv.hcvlny.cv.net [167.206.4.197]) by mx1.freebsd.org (Postfix) with ESMTP id 94FBE13C447 for ; Thu, 27 Dec 2007 18:57:29 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta2.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JTQ0058Q1Z87JA0@mta2.srv.hcvlny.cv.net> for freebsd-ports@freebsd.org; Thu, 27 Dec 2007 13:57:09 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id lBRIv7CY036407; Thu, 27 Dec 2007 13:57:08 -0500 Date: Thu, 27 Dec 2007 13:57:07 -0500 From: "Aryeh M. Friedman" In-reply-to: <20071227185520.GA53485@hades.panopticon> To: Rob Belics , freebsd-ports@freebsd.org Message-id: <4773F583.6020400@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=KOI8-R Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.5 References: <4773E79B.1090904@charter.net> <20071227185520.GA53485@hades.panopticon> User-Agent: Thunderbird 2.0.0.9 (X11/20071217) Cc: 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:57:29 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dmitry Marakasov wrote: > * 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. > It is also the most likely to blow up in your face better to have a sed script. - -- Aryeh M. Friedman FloSoft Systems http://www.flosoft-systems.com Developer, not business, friendly -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHc/WDzIOMjAek4JIRAniCAKCh3abUGtScSuSdq1ogyfl7t3wJCgCeO5/P NvdJwOELR/DhiBnWDuYHcdo= =OxBY -----END PGP SIGNATURE-----