[cgma-dev] Missing include on Mavericks (+patch)

Jane Hu janejhu at gmail.com
Mon Dec 2 13:12:22 CST 2013


David,

It's just been done. Happy coding!

Jane


On Mon, Dec 2, 2013 at 12:43 PM, David Thompson
<david.thompson at kitware.com>wrote:

> Hi all,
>
> When I try building on OS X Mavericks using the latest Xcode, I get an
> error that pid_t is not defined in util/CubitProcess.h. It appears that
> <unistd.h> must be included for this type to be defined. A patch is below.
> Could someone apply it or help me revise it so I can build without patching
> CGM?
>
>         Thanks,
>         David
>
> --- a/util/CubitProcess.hpp
> +++ b/util/CubitProcess.hpp
> @@ -20,6 +20,7 @@
>  #include <windows.h>
>  typedef PROCESS_INFORMATION PidType;
>  #else
> +#  include <unistd.h>
>  typedef pid_t PidType;
>  #endif
>
>
>


-- 
Jane Hu

Asst. Researcher
Dept. of Engineering Physics
UW @ Madison

"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20131202/f80c4c66/attachment.html>


More information about the cgma-dev mailing list