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:
Marc Singer 2012-03-31 12:32:15 -07:00
parent ea179e89f7
commit 03a5435584

View file

@ -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;