Skip to content

Commit 0182f51

Browse files
committed
[libc][fix] Use off_t libc type directly
Summary: Including stdio here caused some multiple definitions on overlay mode. Just include `off_t` directly. Is this correct for 32-bit targets? Will investigate further after fixing bots.
1 parent d65f423 commit 0182f51

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
@@ -9,14 +9,14 @@
99
#ifndef LLVM_LIBC_SRC___SUPPORT_FILE_FILE_H
1010
#define LLVM_LIBC_SRC___SUPPORT_FILE_FILE_H
1111

12+
#include "include/llvm-libc-types/off_t.h"
1213
#include "src/__support/CPP/new.h"
1314
#include "src/__support/error_or.h"
1415
#include "src/__support/macros/properties/architectures.h"
1516
#include "src/__support/threads/mutex.h"
1617

1718
#include <stddef.h>
1819
#include <stdint.h>
19-
#include <stdio.h>
2020

2121
namespace LIBC_NAMESPACE {
2222

0 commit comments

Comments
 (0)