[fpc-pascal] Library does not compile on freeBSD

fredvs fiens at hotmail.com
Sat Aug 2 14:49:05 CEST 2014


Hello.

Thanks to Graeme, it is possible to compile libraries on freeBSD  ;-)

The solution :=>
>>>>>>>>>>>>>>>>>>>>>>>
Implementation
{$IFDEF FREEBSD}
// These are missing for FreeBSD in FPC's RTL
const
    S_IRWXU =  S_IRUSR or S_IWUSR or S_IXUSR;
    S_IRWXG =  S_IRGRP or S_IWGRP or S_IXGRP;
    S_IRWXO =  S_IROTH or S_IWOTH or S_IXOTH;
{$ENDIF}
>>>>>>>>>>>>>>>>>>>>>>>

Not yet tested with fpc 2.7.1 but works with fpc 2.6.4

Many, many, many, many thanks Graeme.

Fred





-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Library-does-not-compile-on-freeBSD-tp5719852p5719856.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list