diff options
author | Brad King <brad.king@kitware.com> | 2016-05-02 19:03:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-03 14:08:41 (GMT) |
commit | be14fe4857299ccd5918e6b1f8db0f0587db2850 (patch) | |
tree | d304c24237d08ca072586d3f6cddbeb81d85c535 /Source/CPack | |
parent | 5e871f708907d0d70cf3f0f68da6b9cc617f376e (diff) | |
download | CMake-be14fe4857299ccd5918e6b1f8db0f0587db2850.zip CMake-be14fe4857299ccd5918e6b1f8db0f0587db2850.tar.gz CMake-be14fe4857299ccd5918e6b1f8db0f0587db2850.tar.bz2 |
Source: Stabilize include order of sys/types.h before sys/stat.h
Include the two headers in an isolated block with a comment separating
them so that tools that re-order includes do not re-order these.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/WiX/cmWIXFilesSourceWriter.cxx | 1 | ||||
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 1 | ||||
-rw-r--r-- | Source/CPack/cmCPackSTGZGenerator.cxx | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx index 446ce96..2833d53 100644 --- a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx +++ b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx @@ -17,6 +17,7 @@ #include <cmInstalledFile.h> #include <sys/types.h> +// include sys/stat.h after sys/types.h #include <sys/stat.h> cmWIXFilesSourceWriter::cmWIXFilesSourceWriter(cmCPackLog* logger, diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 9e17bc8..794955f 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -761,6 +761,7 @@ std::string cmCPackDebGenerator::GetComponentInstallDirNameSuffix( */ #include <sys/types.h> +// include sys/stat.h after sys/types.h #include <sys/stat.h> #include <stdio.h> diff --git a/Source/CPack/cmCPackSTGZGenerator.cxx b/Source/CPack/cmCPackSTGZGenerator.cxx index 8a83666..4a8754e 100644 --- a/Source/CPack/cmCPackSTGZGenerator.cxx +++ b/Source/CPack/cmCPackSTGZGenerator.cxx @@ -18,8 +18,10 @@ #include "cmSystemTools.h" #include "cmake.h" -#include <sys/types.h> #include <cmsys/FStream.hxx> + +#include <sys/types.h> +// include sys/stat.h after sys/types.h #include <sys/stat.h> //---------------------------------------------------------------------- |