summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Smith <matthew@gentoo.org>2024-03-07 21:28:26 +0000
committerMatthew Smith <matthew@gentoo.org>2024-03-07 21:28:43 +0000
commit6aae73c5a4e9b32f8e19388bc831c23c0e19259f (patch)
tree9b6ac08e0c2ffb079622d5f758543c2c693382de /dev-embedded/picotool/files
parentprofiles: default-enable openmp in 23.0 again, it's very much in use (diff)
downloadgentoo-6aae73c5a4e9b32f8e19388bc831c23c0e19259f.tar.gz
gentoo-6aae73c5a4e9b32f8e19388bc831c23c0e19259f.tar.bz2
gentoo-6aae73c5a4e9b32f8e19388bc831c23c0e19259f.zip
dev-embedded/picotool: fix musl build
Closes: https://bugs.gentoo.org/867283 Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-embedded/picotool/files')
-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
+