[llvm] f388ca3 - [NFC] Remove redundant `sys/file.h` header. (#124684)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 08:50:28 PST 2025


Author: c8ef
Date: 2025-01-29T00:50:24+08:00
New Revision: f388ca3d9d9a58e3d189458b590ba68dfd9e5a2d

URL: https://github.com/llvm/llvm-project/commit/f388ca3d9d9a58e3d189458b590ba68dfd9e5a2d
DIFF: https://github.com/llvm/llvm-project/commit/f388ca3d9d9a58e3d189458b590ba68dfd9e5a2d.diff

LOG: [NFC] Remove redundant `sys/file.h` header. (#124684)

Closes #124652.

This header was introduced in
https://github.com/llvm/llvm-project/commit/536736995bf5d073853c7e884968c9847b4ae64d,
but it appears that including only `fnctl.h` should be enough.
Hopefully, this patch will not cause build issues on other Unix
platforms.

Added: 
    

Modified: 
    llvm/lib/Support/Unix/Path.inc

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 1ad3a549a5a542..6004e007c0c7a0 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -29,7 +29,6 @@
 
 #include <dirent.h>
 #include <pwd.h>
-#include <sys/file.h>
 
 #ifdef __APPLE__
 #include <copyfile.h>


        


More information about the llvm-commits mailing list