rethab / bindings-dsl

Library and macros to simplify writing Haskell FFI code
https://github.com/jwiegley/bindings-dsl/wiki
BSD 3-Clause "New" or "Revised" License
39 stars 18 forks source link

bindings-posix unbuildable on osx #27

Closed phadej closed 6 years ago

phadej commented 8 years ago

There is at least a too small in POSIX version in:

https://github.com/jwiegley/bindings-dsl/blob/43ffa203ae19a4d46817de88e05cee811d05d31c/bindings-posix/bindings-posix.cabal#L47

reference: http://wiki.rocrail.net/doku.php?id=osx-error&DokuWiki=3dc3d951a597a9a5034f14da1f7e52b4

#if __DARWIN_C_LEVEL >= 200809L
#define ENOTRECOVERABLE 104     /* State not recoverable */
#define EOWNERDEAD      105     /* Previous owner died */
#endif

also OSX doesn't have SIGRTMIN


The first part is easy to fix, I don't know what to do with SIGRTMIN. Provide shim?

phadej commented 8 years ago

Also there isn't rt https://github.com/wjwwood/serial/issues/24

phadej commented 8 years ago

Also http://stackoverflow.com/questions/10079403/cannot-find-include-file-mqueue-h-on-os-x