Issue 47: Does not build on Mac OSX
o From a poster: Just looking at this error a little more, the fix is easy for lion. Change line 1664 to: char cmsg_buf[CMSG_SPACE(sizeof(int))]; And you should be able to get it to compile. o Made a compatible change even though the original code was valid. Probably a compiler version issue.
This commit is contained in:
parent
ea179e89f7
commit
03a5435584
1 changed files with 2 additions and 1 deletions
|
@ -1661,7 +1661,8 @@ static void launcherDaemon(int fd) {
|
|||
}
|
||||
|
||||
// Send file handle and process id back to parent
|
||||
char cmsg_buf[CMSG_SPACE(sizeof(int))] = { 0 };
|
||||
char cmsg_buf[CMSG_SPACE(sizeof(int))]; // = { 0 }; // Valid initializer makes OSX mad.
|
||||
cmsg_buf[0] = 0;
|
||||
struct iovec iov = { 0 };
|
||||
struct msghdr msg = { 0 };
|
||||
iov.iov_base = &pid;
|
||||
|
|
Loading…
Reference in a new issue