Porting Windows program datatype problem

Dmitry Marakasov amdmi3 at amdmi3.ru
Thu Dec 27 10:55:22 PST 2007

* Rob Belics (rob_belics at 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 at jabber.ru
amdmi3 at amdmi3.ru       | http://www.amdmi3.ru

More information about the freebsd-ports mailing list