I vaguely recall the Mac build environment forcibly includes a pre-compiled header. It might be that the precompiled header includes unistd.h.
----- Rom From: Nicolás Alvarez Sent: Sunday, January 11, 2015 11:00 AM To: BOINC Dev Mailing List Hello boincers, I'm writing a CMake build system for BOINC (currently only lib and api) and I'm having troubles on Mac. Once I added the Mac-specific source files, I get this: lib/procinfo_mac.cpp:48:15: error: use of undeclared identifier 'getpid' At first I thought I was missing HAVE_UNISTD_H in my config.h, but it appears procinfo_mac.cpp isn't including unistd.h at all, so I can't figure out how this ever works with either autotools or Xcode... Does this currently build for any of you? -- Nicolás _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address. _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
