Fixes tasyncawait and the net module on Linux.

This commit is contained in:
Dominik Picheta
2014-03-23 11:39:24 +00:00
parent 3a34a8880c
commit 10f205bb52
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ when defined(Windows):
export WSAEWOULDBLOCK
else:
import posix
export fcntl, F_GETFL, O_NONBLOCK, F_SETFL, EAGAIN, EWOULDBLOCK
export fcntl, F_GETFL, O_NONBLOCK, F_SETFL, EAGAIN, EWOULDBLOCK, MSG_NOSIGNAL,
EINTR, EINPROGRESS
export TSocketHandle, TSockaddr_in, TAddrinfo, INADDR_ANY, TSockAddr, TSockLen,
inet_ntoa, recv, `==`, connect, send, accept, recvfrom, sendto

View File

@@ -3,7 +3,7 @@ discard """
cmd: "nimrod cc --hints:on $# $#"
output: "5000"
"""
import asyncio2, sockets2, net, strutils, os
import asyncdispatch, rawsockets, net, strutils, os
var disp = newDispatcher()
var msgCount = 0