Skip to content

Commit

Permalink
[libc] Use stdio.h for off_t instead of unistd.h (llvm#98093)
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 authored and aaryanshukla committed Jul 14, 2024
1 parent bdbfeb9 commit 4e1c5bd
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 4e1c5bd

Please sign in to comment.