Skip to content

Commit 673b6cd

Browse files
authored
[libc] Use stdio.h for off_t instead of unistd.h (#98093)
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.
1 parent 79d0de2 commit 673b6cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/File/file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include <stddef.h>
1818
#include <stdint.h>
19-
#include <unistd.h> // For off_t.
19+
#include <stdio.h>
2020

2121
namespace LIBC_NAMESPACE {
2222

0 commit comments

Comments
 (0)