fix warning nim nim doc posix (#16995)

This commit is contained in:
Timothee Cour
2021-02-10 04:34:13 -08:00
committed by GitHub
parent 897cb4b077
commit 3189c0a2a9

View File

@@ -878,14 +878,18 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
importc, header: "<sys/socket.h>".}
{.push warning[deprecated]: off.}
proc CMSG_SPACE*(len: csize): csize {.
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
{.pop.}
proc CMSG_SPACE*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".}
{.push warning[deprecated]: off.}
proc CMSG_LEN*(len: csize): csize {.
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
{.pop.}
proc CMSG_LEN*(len: csize_t): csize_t {.
importc, header: "<sys/socket.h>".}