mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
@@ -958,7 +958,7 @@ proc `==`*(x, y: SocketHandle): bool {.borrow.}
|
||||
proc accept*(a1: SocketHandle, a2: ptr SockAddr, a3: ptr SockLen): SocketHandle {.
|
||||
importc, header: "<sys/socket.h>", sideEffect.}
|
||||
|
||||
when defined(linux) or defined(bsd):
|
||||
when defined(linux) or defined(bsd) or defined(nuttx):
|
||||
proc accept4*(a1: SocketHandle, a2: ptr SockAddr, a3: ptr SockLen,
|
||||
flags: cint): SocketHandle {.importc, header: "<sys/socket.h>".}
|
||||
|
||||
|
||||
@@ -646,7 +646,7 @@ elif defined(nuttx):
|
||||
else:
|
||||
var SO_REUSEPORT* {.importc, header: "<sys/socket.h>".}: cint
|
||||
|
||||
when defined(linux) or defined(bsd):
|
||||
when defined(linux) or defined(bsd) or defined(nuttx):
|
||||
var SOCK_CLOEXEC* {.importc, header: "<sys/socket.h>".}: cint
|
||||
|
||||
when defined(macosx):
|
||||
|
||||
Reference in New Issue
Block a user