summaryrefslogtreecommitdiff
path: root/Source/cmGetPipes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGetPipes.cxx')
-rw-r--r--Source/cmGetPipes.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGetPipes.cxx b/Source/cmGetPipes.cxx
index ad323f7ee..4eda1c54a 100644
--- a/Source/cmGetPipes.cxx
+++ b/Source/cmGetPipes.cxx
@@ -2,10 +2,10 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmGetPipes.h"
-#include "cm_uv.h"
-
#include <fcntl.h>
+#include "cm_uv.h"
+
#if defined(_WIN32) && !defined(__CYGWIN__)
# include <io.h>
@@ -28,7 +28,8 @@ int cmGetPipes(int* fds)
return 0;
}
#else
-# include <errno.h>
+# include <cerrno>
+
# include <unistd.h>
int cmGetPipes(int* fds)