commit | be0fab1815d5754e0a60acbdea933c8b36177764 | [log] [tgz] |
---|---|---|
author | James Lacey <jamlacey@gmail.com> | Fri Oct 07 14:50:01 2022 -0700 |
committer | Jens Geyer <Jens-G@users.noreply.github.com> | Sat Oct 08 18:26:47 2022 +0200 |
tree | 2e04a154e72b64bd44dac6ef369f8979326d84cc | |
parent | e780f8c744f0e641f52b6a1ac7ad786eb44cf213 [diff] |
THRIFT-5647: Add ECONNRESET definition for macOS. Client: d
diff --git a/lib/d/src/thrift/async/socket.d b/lib/d/src/thrift/async/socket.d index 352a822..aa42ac9 100644 --- a/lib/d/src/thrift/async/socket.d +++ b/lib/d/src/thrift/async/socket.d
@@ -37,6 +37,10 @@ import core.sys.posix.sys.socket : connect; } else static assert(0, "Don't know connect on this platform."); +version (OSX) { + import core.stdc.errno : ECONNRESET; +} + version (Win32) { import core.stdc.config : __c_long; }