[Lldb-commits] [PATCH] D47420: Remove Linux-specific includes for posix/FileSystem.cpp

Bruce Mitchener via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun May 27 05:36:17 PDT 2018


brucem created this revision.
brucem added a reviewer: clayborg.
Herald added a subscriber: krytarowski.

This improves the process of cross-compiling from macOS to Linux
since these files aren't used / needed at all.


https://reviews.llvm.org/D47420

Files:
  source/Host/posix/FileSystem.cpp


Index: source/Host/posix/FileSystem.cpp
===================================================================
--- source/Host/posix/FileSystem.cpp
+++ source/Host/posix/FileSystem.cpp
@@ -16,11 +16,6 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
-#ifdef __linux__
-#include <linux/magic.h>
-#include <sys/mount.h>
-#include <sys/statfs.h>
-#endif
 #if defined(__NetBSD__)
 #include <sys/statvfs.h>
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47420.148748.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180527/747b5e60/attachment.bin>


More information about the lldb-commits mailing list