Small Darwin fix in synaser.pas

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@188 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2014-03-03 16:15:07 +00:00
parent 564abf85ac
commit 93c88514ef

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 007.005.005 | | Project : Ararat Synapse | 007.005.006 |
|==============================================================================| |==============================================================================|
| Content: Serial port support | | Content: Serial port support |
|==============================================================================| |==============================================================================|
| Copyright (c)2001-2013, Lukas Gebauer | | Copyright (c)2001-2014, 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-2013. | | Portions created by Lukas Gebauer are Copyright (c)2001-2014. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -1942,7 +1942,7 @@ begin
SerialCheck(ioctl(FHandle, TCFLSH, TCIOFLUSH)); SerialCheck(ioctl(FHandle, TCFLSH, TCIOFLUSH));
{$ELSE} {$ELSE}
{$IFDEF DARWIN} {$IFDEF DARWIN}
SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH)); SerialCheck(fpioctl(FHandle, TCIOflush, Pointer(TCIOFLUSH)));
{$ELSE} {$ELSE}
SerialCheck(fpioctl(FHandle, {$IFDEF FreeBSD}TCIOFLUSH{$ELSE}TCFLSH{$ENDIF}, Pointer(PtrInt(TCIOFLUSH)))); SerialCheck(fpioctl(FHandle, {$IFDEF FreeBSD}TCIOFLUSH{$ELSE}TCFLSH{$ENDIF}, Pointer(PtrInt(TCIOFLUSH))));
{$ENDIF} {$ENDIF}