Difference between Linux and Mac serial port support files
Original Reporter info from Mantis: jcdammeyer
-
Reporter name: John Dammeyer
Original Reporter info from Mantis: jcdammeyer
- Reporter name: John Dammeyer
Description:
Compiling LazSerial.pas results in compiling LazSynaSer.pas which uses termio.pp which includes termios.inc. For Linux the path is ../rtl/linux while for the Mac it's ../rtl/Darwin.
The Darwin version is missing TIOCGSERIAL among probably others while the Linux is not. The Windows version does not use the function that needs that constant.
Steps to reproduce:
Change LazSerial to include UNIX in addition to LINUX. Then compile package.
{$IFDEF UNIX}
Classes,
{$IFDEF UseCThreads}
cthreads,
{$ENDIF}
{$ELSE}
Windows, Classes, //registry,
{$ENDIF}
Additional information:
Serial/USB(Serial) port support either embedded or with a library that works across Lazarus platforms should be a fundamental part of Lazarus in the same way that Networking is.
Mantis conversion info:
- Mantis ID: 38255
- OS: macOS
- OS Build: Yosemite
- Platform: 2008 MacBook
- Version: 2.0.10