summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-11-08 17:13:29 +0800
committerGitHub <noreply@github.com>2022-11-08 10:13:29 +0100
commitca3b6cba5dca1b0f73d8dec7476d440af9780567 (patch)
treeac0249e2126b40e11641955e782d3eba7feb333a /lib/posix
parent53643c9bc4cee446b0b2cbbb28c7f00bac1df246 (diff)
downloadNim-ca3b6cba5dca1b0f73d8dec7476d440af9780567.tar.gz
fixes nightlies regression; patches for freebsd (#20786)
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix_macos_amd64.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/posix/posix_macos_amd64.nim b/lib/posix/posix_macos_amd64.nim
index ed622a6bf..d6b5834cb 100644
--- a/lib/posix/posix_macos_amd64.nim
+++ b/lib/posix/posix_macos_amd64.nim
@@ -366,6 +366,18 @@ when hasSpawnH:
     Tposix_spawn_file_actions* {.importc: "posix_spawn_file_actions_t",
                                  header: "<spawn.h>", final, pure.} = object
 
+
+when not defined(macos) and not defined(macosx): # freebsd
+  type
+    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.
+
 when defined(linux):
   # from sys/un.h
   const Sockaddr_un_path_length* = 108