I use shm_openwith cgo. shm_opendefined by three arguments in Linux
int shm_open(const char *name, int oflag, mode_t mode);
whereas on OSX (Darwin) the 3rd mode flag is optional.
int shm_open(const char *name, int oflag, ...);
This creates a problem with CGO when trying to transfer OSX mode. He complains that I pass 3 arguments when only 2 are expected.
How can I get around this?
source
share