synaser.pas - FPC FreeBSD patch (bug: 3608998)

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@183 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2013-04-11 11:39:39 +00:00
parent 3673f1d760
commit 67cd67f181

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 007.005.004 | | Project : Ararat Synapse | 007.005.005 |
|==============================================================================| |==============================================================================|
| Content: Serial port support | | Content: Serial port support |
|==============================================================================| |==============================================================================|
| Copyright (c)2001-2012, Lukas Gebauer | | Copyright (c)2001-2013, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. | | DAMAGE. |
|==============================================================================| |==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2001-2012. | | Portions created by Lukas Gebauer are Copyright (c)2001-2013. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -245,7 +245,7 @@ const
); );
{$ENDIF} {$ENDIF}
{$IFDEF DARWIN} {$IFDEF BSD}
const // From fcntl.h const // From fcntl.h
O_SYNC = $0080; { synchronous writes } O_SYNC = $0080; { synchronous writes }
{$ENDIF} {$ENDIF}
@ -1944,7 +1944,7 @@ begin
{$IFDEF DARWIN} {$IFDEF DARWIN}
SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH)); SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH));
{$ELSE} {$ELSE}
SerialCheck(fpioctl(FHandle, TCFLSH, Pointer(PtrInt(TCIOFLUSH)))); SerialCheck(fpioctl(FHandle, {$IFDEF FreeBSD}TCIOFLUSH{$ELSE}TCFLSH{$ENDIF}, Pointer(PtrInt(TCIOFLUSH))));
{$ENDIF} {$ENDIF}
{$ENDIF} {$ENDIF}
FBuffer := ''; FBuffer := '';
@ -2333,4 +2333,4 @@ begin
end; end;
{$ENDIF} {$ENDIF}
end. end.