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

David Thompson david.thompson at kitware.com
Mon Dec 2 12:43:26 CST 2013


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
 



More information about the cgma-dev mailing list