Browse Source

automoc: include <unistd.h> on Apple to get pathconf

Sean McBride 13 years ago
parent
commit
8a704955e1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmQtAutomoc.cxx

+ 3 - 0
Source/cmQtAutomoc.cxx

@@ -20,6 +20,9 @@
 #include <cmsys/Terminal.h>
 
 #include <string.h>
+#if defined(__APPLE__)
+#include <unistd.h>
+#endif
 
 #include "cmQtAutomoc.h"