diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-05 08:11:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 08:11:27 +0100 |
commit | 88dcad7c011b71fe6376c1fab62ca815fd4f1b73 (patch) | |
tree | 0a2b84e28eb4edb754f078ef0e9ec000c8751b89 /lib | |
parent | d50336837dfa1a3b81c1b5338b5a9b5d41cf6221 (diff) | |
parent | c37fdbf843124406ad70185105ab0396867a06d2 (diff) | |
download | Nim-88dcad7c011b71fe6376c1fab62ca815fd4f1b73.tar.gz |
Merge pull request #9862 from zevv/posix-cmsg
Added CMSG_SPACE and CMSG_LEN macros to posix.nim
Diffstat (limited to 'lib')
-rw-r--r-- | lib/posix/posix.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 0c66aa2b9..175f6a61d 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -823,6 +823,12 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {. proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {. importc, header: "<sys/socket.h>".} +proc CMSG_SPACE*(len: csize): csize {. + importc, header: "<sys/socket.h>".} + +proc CMSG_LEN*(len: csize): csize {. + importc, header: "<sys/socket.h>".} + const INVALID_SOCKET* = SocketHandle(-1) |