[Lldb-commits] [lldb] r333400 - Remove Linux-specific includes for posix/FileSystem.cpp

Bruce Mitchener via lldb-commits lldb-commits at lists.llvm.org
Tue May 29 02:14:40 PDT 2018


Author: brucem
Date: Tue May 29 02:14:40 2018
New Revision: 333400

URL: http://llvm.org/viewvc/llvm-project?rev=333400&view=rev
Log:
Remove Linux-specific includes for posix/FileSystem.cpp

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

Reviewers: clayborg, labath

Subscribers: lldb-commits, krytarowski

Differential Revision: https://reviews.llvm.org/D47420

Modified:
    lldb/trunk/source/Host/posix/FileSystem.cpp

Modified: lldb/trunk/source/Host/posix/FileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/FileSystem.cpp?rev=333400&r1=333399&r2=333400&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/FileSystem.cpp (original)
+++ lldb/trunk/source/Host/posix/FileSystem.cpp Tue May 29 02:14:40 2018
@@ -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




More information about the lldb-commits mailing list