summaryrefslogtreecommitdiffstats
path: root/Source/cm_sys_stat.h
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2017-06-17 16:49:33 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2017-06-28 17:55:12 (GMT)
commit5299141320c7be96e9357ebd457c9a279308248a (patch)
tree9c487cff7beef693f711f6bd92ea96f3b9d918c2 /Source/cm_sys_stat.h
parent1363a0cbcef00cb9a49eba3b68283b5b6d1b95a5 (diff)
downloadCMake-5299141320c7be96e9357ebd457c9a279308248a.zip
CMake-5299141320c7be96e9357ebd457c9a279308248a.tar.gz
CMake-5299141320c7be96e9357ebd457c9a279308248a.tar.bz2
CPackDeb: Enable the DEB generator on Windows
While some features require external Unix tools the generator is mostly portable. By enabling it on Windows it can be used for cross platform packaging.
Diffstat (limited to 'Source/cm_sys_stat.h')
-rw-r--r--Source/cm_sys_stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cm_sys_stat.h b/Source/cm_sys_stat.h
index 26e4baa..796f027 100644
--- a/Source/cm_sys_stat.h
+++ b/Source/cm_sys_stat.h
@@ -7,6 +7,11 @@
typedef unsigned short mode_t;
#endif
+#if defined(WIN32)
+typedef unsigned short uid_t;
+typedef unsigned short gid_t;
+#endif
+
#include <sys/types.h>
// include sys/stat.h after sys/types.h
#include <sys/stat.h>