summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-02 19:03:45 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-03 14:08:41 (GMT)
commitbe14fe4857299ccd5918e6b1f8db0f0587db2850 (patch)
treed304c24237d08ca072586d3f6cddbeb81d85c535 /Source/cmake.cxx
parent5e871f708907d0d70cf3f0f68da6b9cc617f376e (diff)
downloadCMake-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/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index da6e59e..f176cc1 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -99,11 +99,12 @@
# include "cmGlobalXCodeGenerator.h"
# define CMAKE_USE_XCODE 1
# endif
-# include <sys/types.h>
# include <sys/resource.h>
# include <sys/time.h>
#endif
+#include <sys/types.h>
+// include sys/stat.h after sys/types.h
#include <sys/stat.h> // struct stat
#include <list>