summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2012-03-27 23:36:33 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-03-28 19:07:00 (GMT)
commit8a704955e1cf4f703d12a4c9e429cbfe483339d7 (patch)
treec54de09f7d200a8376330acb1a517b4ca0b5cad0
parent3eb3d5f30696a45467f873ab1b2e8081f70ec2de (diff)
downloadCMake-8a704955e1cf4f703d12a4c9e429cbfe483339d7.zip
CMake-8a704955e1cf4f703d12a4c9e429cbfe483339d7.tar.gz
CMake-8a704955e1cf4f703d12a4c9e429cbfe483339d7.tar.bz2
automoc: include <unistd.h> on Apple to get pathconf
-rw-r--r--Source/cmQtAutomoc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index 8b899bc..ca27530 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/Source/cmQtAutomoc.cxx
@@ -20,6 +20,9 @@
#include <cmsys/Terminal.h>
#include <string.h>
+#if defined(__APPLE__)
+#include <unistd.h>
+#endif
#include "cmQtAutomoc.h"