From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: newlib@sourceware.org
Subject: [PATCH 2/2] In <stdio.h> provide only necessary types
Date: Wed, 4 May 2022 10:10:48 +0200 [thread overview]
Message-ID: <20220504081048.115022-2-sebastian.huber@embedded-brains.de> (raw)
In-Reply-To: <20220504081048.115022-1-sebastian.huber@embedded-brains.de>
---
newlib/libc/include/stdio.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index 7748351f0..b995b56d2 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -58,7 +58,7 @@ typedef __gnuc_va_list va_list;
*/
#include <sys/reent.h>
-#include <sys/types.h>
+#include <sys/_types.h>
_BEGIN_STD_C
@@ -76,6 +76,16 @@ typedef _fpos64_t fpos64_t;
#endif
#endif /* !__CYGWIN__ */
+#ifndef _OFF_T_DECLARED
+typedef __off_t off_t;
+#define _OFF_T_DECLARED
+#endif
+
+#ifndef _SSIZE_T_DECLARED
+typedef _ssize_t ssize_t;
+#define _SSIZE_T_DECLARED
+#endif
+
#include <sys/stdio.h>
#define __SLBF 0x0001 /* line buffered */
--
2.34.1
next prev parent reply other threads:[~2022-05-04 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 8:10 [PATCH 1/2] In <sys/types.h> optionally provide stdint.h types Sebastian Huber
2022-05-04 8:10 ` Sebastian Huber [this message]
2022-05-04 13:50 ` [PATCH 2/2] In <stdio.h> provide only necessary types Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220504081048.115022-2-sebastian.huber@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).