The Poster, Jurassic Pork (JP) has made changes to LazSerial based on comments in LazSynaSer.pas. And there are {$IFDEF DARWIN} conditionals.
However, compiling the component fails on identifier not found TIOCGSERIAL. That doesn't happen in the windows version because that piece of code is not defined so not accessed.
{$IFNDEF MSWINDOWS}
// Modif J.P 03/2013 - O1/2017
function GetSerialPortNames: string;
...
However drop into the Pi Linux version and it's defined in the termios.inc. It's not defined in the termios.inc on the Mac.
So termio.pp which is in ../rtl/darwin/ is different from termio.pp in ../rtl/linux/
Changing the Linux Run Time Library files is really above my pay grade so to speak.
For the same reason on another Linux Lazarus project I'm having trouble incorporating socketCAN support in sockets.pp while the sockets.c used by C and Python already have it.
Where do we put in a request to upgrade /rtl/termio.pp and the corresponding termios.inc to match what is available in Lazarus for Linux?
Thanks
John
[edit: argh - edited original post instead of my reply :-]