aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcmake/config-ix.cmake1
-rw-r--r--include/llvm/Config/config.h.cmake3
2 files changed, 4 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 5158bfe..cbe48d8 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -69,6 +69,7 @@ endif( MINGW )
if( MSVC )
set(error_t int)
+ set(mode_t "unsigned short")
set(LTDL_SHLIBPATH_VAR "PATH")
set(LTDL_SYSSEARCHPATH "")
set(LTDL_DLOPEN_DEPLIBS 1)
diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake
index 12846fe..82f8828 100644
--- a/include/llvm/Config/config.h.cmake
+++ b/include/llvm/Config/config.h.cmake
@@ -551,6 +551,9 @@
/* Define to a type to use for `error_t' if it is not otherwise available. */
#cmakedefine error_t ${error_t}
+/* Define to a type to use for `mode_t' if it is not otherwise available. */
+#cmakedefine mode_t ${mode_t}
+
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t