summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-06 16:34:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-06 16:35:00 (GMT)
commit32c9ab8a1ba1dc55275aaad4285f0006ee8d4ea0 (patch)
treefafc50d85cd67bdae3a8e642ceee65c8de7f5919 /Source
parent7772c1db03b2424d0b8bc0f7b89e5733d2770b1d (diff)
parent0d06cc457c2b526584c52153001d88051f6b5fbd (diff)
downloadCMake-32c9ab8a1ba1dc55275aaad4285f0006ee8d4ea0.zip
CMake-32c9ab8a1ba1dc55275aaad4285f0006ee8d4ea0.tar.gz
CMake-32c9ab8a1ba1dc55275aaad4285f0006ee8d4ea0.tar.bz2
Merge topic 'iwyu-freebsd-pkg'
0d06cc457c CPack/FreeBSD: Cleanup include-what-you-use diagnostics Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3785
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackFreeBSDGenerator.cxx4
-rw-r--r--Source/CPack/cmCPackFreeBSDGenerator.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackFreeBSDGenerator.cxx b/Source/CPack/cmCPackFreeBSDGenerator.cxx
index 3979000..b3cb2ad 100644
--- a/Source/CPack/cmCPackFreeBSDGenerator.cxx
+++ b/Source/CPack/cmCPackFreeBSDGenerator.cxx
@@ -12,13 +12,13 @@
// Needed for ::open() and ::stat()
#include <fcntl.h>
#include <sys/stat.h>
-#include <sys/types.h>
-#include <unistd.h>
#include <pkg.h>
#include <algorithm>
+#include <ostream>
#include <utility>
+#include <vector>
cmCPackFreeBSDGenerator::cmCPackFreeBSDGenerator()
: cmCPackArchiveGenerator(cmArchiveWrite::CompressXZ, "paxr", ".txz")
diff --git a/Source/CPack/cmCPackFreeBSDGenerator.h b/Source/CPack/cmCPackFreeBSDGenerator.h
index 80c53b1..9c8a934 100644
--- a/Source/CPack/cmCPackFreeBSDGenerator.h
+++ b/Source/CPack/cmCPackFreeBSDGenerator.h
@@ -3,11 +3,13 @@
#ifndef cmCPackFreeBSDGenerator_h
#define cmCPackFreeBSDGenerator_h
-#include <cmConfigure.h>
+#include "cmConfigure.h" // IWYU pragma: keep
#include "cmCPackArchiveGenerator.h"
#include "cmCPackGenerator.h"
+#include <string>
+
class cmGeneratedFileStream;
/** \class cmCPackFreeBSDGenerator