diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-06-20 08:22:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 08:22:07 (GMT) |
commit | 28101b82564f504710919bed39a064356c3f13d6 (patch) | |
tree | 2dfdf1c618018d373ec55cfd19588cc06efc2fe4 /packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch | |
parent | 5ab29fbf3e4e4dbd71ea9d01d15f6a575bd71562 (diff) | |
parent | db061bdf2b7340a7a7c49367a6848fd8f3fa42aa (diff) |
Merge pull request #1450 from keith-packard/libstdc++-compat
Libstdc++ compat
Diffstat (limited to 'packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch')
-rw-r--r-- | packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch b/packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch new file mode 100644 index 0000000..5536cd4 --- /dev/null +++ b/packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch @@ -0,0 +1,30 @@ +From 9d0640874425e9f3f265c9baff7a47139b25ea7d Mon Sep 17 00:00:00 2001 +From: Keith Packard <keithp@keithp.com> +Date: Thu, 14 Jan 2021 17:54:22 -0800 +Subject: [PATCH 1/2] libc: Remove #include <sys/select.h> from sys/types.h + +picolibc's sys/select.h is likely to be replaced by the underlying +operating system version (as it is on Zephyr). Don't include it from +sys/types.h as that version may depend on other definitions in +sys/types.h which haven't yet been defined. + +Signed-off-by: Keith Packard <keithp@keithp.com> +--- + newlib/libc/include/sys/types.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h +index ea25222c2..1a0abcb83 100644 +--- a/newlib/libc/include/sys/types.h ++++ b/newlib/libc/include/sys/types.h +@@ -75,7 +75,6 @@ typedef __intptr_t register_t; + + #if __BSD_VISIBLE + #include <machine/endian.h> +-#include <sys/select.h> + # define physadr physadr_t + # define quad quad_t + +-- +2.30.0 + |