From 025b76d174f855627aedd0619a77f5b1b1351f74 Mon Sep 17 00:00:00 2001 From: geby Date: Fri, 30 Jul 2021 17:46:02 +0000 Subject: [PATCH] ssfpc.inc - do not use MAG_NOSIGNAL on MacOS, it is disabled by SO_NOSIGPIPE instead (bug #53) git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@237 7c85be65-684b-0410-a082-b2ed4fbef004 --- ssfpc.inc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ssfpc.inc b/ssfpc.inc index 6acc21d..83d5ebe 100644 --- a/ssfpc.inc +++ b/ssfpc.inc @@ -1,9 +1,9 @@ {==============================================================================| -| Project : Ararat Synapse | 001.001.007 | +| Project : Ararat Synapse | 001.001.008 | |==============================================================================| | Content: Socket Independent Platform Layer - FreePascal definition include | |==============================================================================| -| Copyright (c)2006-2013, Lukas Gebauer | +| Copyright (c)2006-2021, Lukas Gebauer | | All rights reserved. | | | | Redistribution and use in source and binary forms, with or without | @@ -33,7 +33,7 @@ | DAMAGE. | |==============================================================================| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| -| Portions created by Lukas Gebauer are Copyright (c)2006-2013. | +| Portions created by Lukas Gebauer are Copyright (c)2006-2021. | | All Rights Reserved. | |==============================================================================| | Contributor(s): | @@ -255,9 +255,8 @@ const MSG_OOB = sockets.MSG_OOB; // Process out-of-band data. MSG_PEEK = sockets.MSG_PEEK; // Peek at incoming messages. {$ifdef DARWIN} - MSG_NOSIGNAL = $20000; // Do not generate SIGPIPE. - // Works under MAC OS X, but is undocumented, - // So FPC doesn't include it + MSG_NOSIGNAL = 0; // Signal is disabled by SO_NOSIGPIPE socket option instead + //was $20000 as undocumented option for Mac OS X {$else} MSG_NOSIGNAL = sockets.MSG_NOSIGNAL; // Do not generate SIGPIPE. {$endif}