On Friday 02 September 2016 18:08:31 Fred van Stappen wrote:

> Hello Martin.
>
> While cross-compiling on FreeBSD 64 --> 32 , there are error messages.
> Some constants are not defined.
>
> Finally, this solves all:
> in mselibc.pas and mseockeintf.pas --> change all {$idef linux} with --->
> {$idef unix}
>
> But I am not sure it is the perfect solution.
>
Probably not:
"
{$ifdef linux}
function __libc_sa_len(__af: sa_family_t): Integer; cdecl;external clib
name '__libc_sa_len';
{$else}
  //use len field of FreeBSD struct
{$endif}
"
32 bit FreeBSD is not supported by me. You need to define all necessary 32 bit
libc structs for FreeBSD in lib/common/kernel/mselibc. Check the {$else}-part
of {$ifdef linux} for missing or wrong defines for 32 bit.

Martin

______________

Hellon Martin.

OK, many thanks.

Hum, I assume you want to write:

{$ifdef unix}
{$ifdef linux}
function __libc_sa_len(__af: sa_family_t): Integer; cdecl;external clib
name '__libc_sa_len';
{$else}
  //use len field of FreeBSD struct
{$endif}
{$endif}

 Fre;D

Fre;D


------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to