Skip to content

Commit

Permalink
[lldb][Posix] Remove unused includes in file system (llvm#121913)
Browse files Browse the repository at this point in the history
You could remove unistd.h and it will still build, but only because
something else included it. So I've left it in in the spirit of "include
what you use".

Tested on Linux and FreeBSD.
  • Loading branch information
DavidSpickett authored Jan 7, 2025
1 parent 1fb98b5 commit 4ecd9bd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lldb/source/Host/posix/FileSystemPosix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
#include "lldb/Host/FileSystem.h"

// C includes
#include <dirent.h>
#include <fcntl.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#if defined(__NetBSD__)
#include <sys/statvfs.h>
Expand Down

0 comments on commit 4ecd9bd

Please sign in to comment.