Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use UNIX preprocessor constant instead of POSIX.

  • Loading branch information...
commit 039584b97f70a88e8e4f48f027bde959185eabb1 1 parent 2c746f7
@jgoz jgoz authored
View
2  src/ZeroMQ.AcceptanceTests/ZmqSocketTests/Bind_Connect.cs
@@ -103,7 +103,7 @@ private void Execute()
Sender.Connect("ipc:///tmp/testsock");
}
-#if POSIX
+#if UNIX
[Test]
public void ShouldSucceedSilently()
{
View
8 src/ZeroMQ.AcceptanceTests/ZmqSocketTests/SocketOptions.cs
@@ -161,7 +161,7 @@ public void ShouldExecuteWithoutException()
public class TcpKeepalive : SocketOptionSetSuccessfully<TcpKeepaliveBehaviour>
{
-#if POSIX
+#if UNIX
public TcpKeepalive() : base(socket => socket.TcpKeepalive, TcpKeepaliveBehaviour.Enable) { }
#else
public TcpKeepalive() : base(socket => socket.TcpKeepalive, TcpKeepaliveBehaviour.Enable, TcpKeepaliveBehaviour.Default) { }
@@ -175,7 +175,7 @@ protected override bool CheckVersion()
public class TcpKeepaliveCnt : SocketOptionSetSuccessfully<int>
{
-#if POSIX
+#if UNIX
public TcpKeepaliveCnt() : base(socket => socket.TcpKeepaliveCnt, 42) { }
#else
public TcpKeepaliveCnt() : base(socket => socket.TcpKeepaliveCnt, 42, -1) { }
@@ -189,7 +189,7 @@ protected override bool CheckVersion()
public class TcpKeepaliveIdle : SocketOptionSetSuccessfully<int>
{
-#if POSIX
+#if UNIX
public TcpKeepaliveIdle() : base(socket => socket.TcpKeepaliveIdle, 42) { }
#else
public TcpKeepaliveIdle() : base(socket => socket.TcpKeepaliveIdle, 42, -1) { }
@@ -203,7 +203,7 @@ protected override bool CheckVersion()
public class TcpKeepaliveIntvl : SocketOptionSetSuccessfully<int>
{
-#if POSIX
+#if UNIX
public TcpKeepaliveIntvl() : base(socket => socket.TcpKeepaliveIntvl, 42) { }
#else
public TcpKeepaliveIntvl() : base(socket => socket.TcpKeepaliveIntvl, 42, -1) { }
Please sign in to comment.
Something went wrong with that request. Please try again.