-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[libc] fixup missing include for fullbuild #87266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc @Sh0g0-1758 |
@llvm/pr-subscribers-libc Author: Nick Desaulniers (nickdesaulniers) ChangesFixes #86928 Full diff: https://github.com/llvm/llvm-project/pull/87266.diff 2 Files Affected:
diff --git a/libc/src/stdio/fseeko.h b/libc/src/stdio/fseeko.h
index 77fb41215c318f..3202ed2f97d0ef 100644
--- a/libc/src/stdio/fseeko.h
+++ b/libc/src/stdio/fseeko.h
@@ -10,6 +10,7 @@
#define LLVM_LIBC_SRC_STDIO_FSEEKO_H
#include <stdio.h>
+#include <unistd.h>
namespace LIBC_NAMESPACE {
diff --git a/libc/src/stdio/ftello.h b/libc/src/stdio/ftello.h
index 5ab17f9244a5ad..0fdf13ab6bdbcd 100644
--- a/libc/src/stdio/ftello.h
+++ b/libc/src/stdio/ftello.h
@@ -10,6 +10,7 @@
#define LLVM_LIBC_SRC_STDIO_FTELLO_H
#include <stdio.h>
+#include <unistd.h>
namespace LIBC_NAMESPACE {
|
Thanks for fixing up the missing includes. But I am at a loss at to why without the include statement, the implementation gave no error in pre-build? |
If we look at the presubmit build's CI run, the
The lack of What I suspect was happening is that you're testing locally with overlay mode, and thus We can always move more things from post submit to presubmit, and to improve source level compatibility for users, we may end up setting up similar transitive includes. In fact, looking at |
Ah I see, thanks a lot for the explanation. Things are much clearer now. Should I raise an issue for this:
|
Looking at libc/spec/posix.td, we have
So, we're missing re-exporting it from:
We don't implement aio.h yet, so instead we should:
@Sh0g0-1758 care to send a patch for that, or shall I? |
I can send a patch in a couple of hours. |
Unit test is failing now in postsubmit:
|
That's 11 - 42 == ( |
This reverts commit 2cfd7d4.
Adding OffTType to fcntl.h and stdio.h 's Macro lists in libc/spec/posix.td as mentioned here: #87266
Fixes #86928