mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
Use C23/compiler extension to conditionally include right header. Clean up *.la files. Keep empty directories, they are needed for runtime services. Fix is only for 22.02.122, not 24.004.60 or live. Closes: https://bugs.gentoo.org/839081 Closes: https://bugs.gentoo.org/925430 Closes: https://bugs.gentoo.org/921110 Closes: https://bugs.gentoo.org/898564 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40771 Signed-off-by: Sam James <sam@gentoo.org>
16 lines
510 B
Diff
16 lines
510 B
Diff
Use C23 __has_include to add correct include on musl. Was compiler extension
|
|
before C23, works on clang/gcc versions we care about.
|
|
https://bugs.gentoo.org/898564
|
|
--- a/src/libply/ply-command-parser.c 2025-02-26 14:05:33.417781845 +0000
|
|
+++ b/src/libply/ply-command-parser.c 2025-02-26 14:09:10.068476721 +0000
|
|
@@ -29,6 +29,10 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
+#if __has_include(<rpmatch.h>)
|
|
+#include <rpmatch.h>
|
|
+#endif
|
|
+
|
|
#include "ply-buffer.h"
|
|
#include "ply-list.h"
|
|
#include "ply-utils.h"
|