diff options
author | n5m <72841454+n5m@users.noreply.github.com> | 2022-11-05 05:31:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 06:31:19 +0100 |
commit | 51bef9b4a8b0dab065470d9c224c20ac21e72275 (patch) | |
tree | 470bf75a2a570b712673a800421aad055be9c366 /lib/posix/posix_macos_amd64.nim | |
parent | 4491da4c4d090406987650ffd6eb7cea5ded9a19 (diff) | |
download | Nim-51bef9b4a8b0dab065470d9c224c20ac21e72275.tar.gz |
fix posix.mq_receive compilation with cpp backend (#20710)
* fix posix.mq_receive compilation with cpp backend * only enable runnableExample on posix * linux, not posix * simplify example * add test * mqueue.h does not exist on MacOS * place test case in own block * drop runnableExamples
Diffstat (limited to 'lib/posix/posix_macos_amd64.nim')
-rw-r--r-- | lib/posix/posix_macos_amd64.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/posix/posix_macos_amd64.nim b/lib/posix/posix_macos_amd64.nim index 2e68af330..ed622a6bf 100644 --- a/lib/posix/posix_macos_amd64.nim +++ b/lib/posix/posix_macos_amd64.nim @@ -108,15 +108,6 @@ type p_sign_posn*: char thousands_sep*: cstring - Mqd* {.importc: "mqd_t", header: "<mqueue.h>", final, pure.} = object - MqAttr* {.importc: "struct mq_attr", - header: "<mqueue.h>", - final, pure.} = object ## message queue attribute - mq_flags*: int ## Message queue flags. - mq_maxmsg*: int ## Maximum number of messages. - mq_msgsize*: int ## Maximum message size. - mq_curmsgs*: int ## Number of messages currently queued. - Passwd* {.importc: "struct passwd", header: "<pwd.h>", final, pure.} = object ## struct passwd pw_name*: cstring ## User's login name. |