Skip to content

Commit

Permalink
[libc] Use stdio.h for off_t instead of unistd.h
Browse files Browse the repository at this point in the history
Summary:
The `stdio.h` header should define `off_t` as defined for the platform.
This will use the system's in overlay mode, or what the llvm-libc-types
deems correct. If this `off_t` is incorrect it should be changed in
`llvm-libc-types`. This fixes the GPU build.
  • Loading branch information
jhuber6 committed Jul 8, 2024
1 parent 4b53cbb commit b3d16fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/__support/File/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <stddef.h>
#include <stdint.h>
#include <unistd.h> // For off_t.
#include <stdio.h>

namespace LIBC_NAMESPACE {

Expand Down

0 comments on commit b3d16fb

Please sign in to comment.