summaryrefslogtreecommitdiff
path: root/dev-embedded/picotool/files/picotool-1.1.2-musl.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
commit443cfbefc0bbd1e252d323db7597b33ace434817 (patch)
treeaeab1cdb4ddfa5340339e11ffa04b2513377d7e7 /dev-embedded/picotool/files/picotool-1.1.2-musl.patch
parent4c5e0520b3ae5cce70461c3f7fceb313186d6ea2 (diff)
gentoo auto-resync : 08:03:2024 - 01:06:59
Diffstat (limited to 'dev-embedded/picotool/files/picotool-1.1.2-musl.patch')
-rw-r--r--dev-embedded/picotool/files/picotool-1.1.2-musl.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-embedded/picotool/files/picotool-1.1.2-musl.patch b/dev-embedded/picotool/files/picotool-1.1.2-musl.patch
new file mode 100644
index 000000000000..77eeda5b6b9c
--- /dev/null
+++ b/dev-embedded/picotool/files/picotool-1.1.2-musl.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/867283
+https://wiki.gentoo.org/wiki/Musl_porting_notes#cdefs.h:_No_such_file_or_directory
+--- a/pico-sdk/src/host/pico_platform/include/pico/platform.h
++++ b/pico-sdk/src/host/pico_platform/include/pico/platform.h
+@@ -13,7 +13,11 @@
+
+ #ifdef __unix__
+
+-#include <sys/cdefs.h>
++#if defined __has_include
++# if __has_include (<sys/cdefs.h>)
++# include <sys/cdefs.h>
++# endif
++#endif
+
+ #endif
+