Issue 124652
Summary [llvm] `'sys/file.h' file not found` when building clang with llvm-libc
Labels good first issue, libc, llvm:support
Assignees
Reporter nickdesaulniers
    seems to be stemming from llvm/lib/Support/Unix/Path.inc

536736995bf5d looks suspicious.  It should only be including `<fcntl.h>` and NOT the non-standard `<sys/file.h>`. fcntl.h should include definitions of `struct flock`, `F_WRLCK`, `F_SETLK`, `F_SETLKW`, `F_UNLCK`. Then llvm-libc can build this file with one less issue.

So the issue lies in llvm (llvm/lib/Support/Unix/Path.inc) but tagging this libc as well to cc the relevant folk.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to