aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/elfutils
diff options
context:
space:
mode:
Diffstat (limited to 'package/libs/elfutils')
-rw-r--r--package/libs/elfutils/patches/100-musl-compat.patch14
1 files changed, 8 insertions, 6 deletions
diff --git a/package/libs/elfutils/patches/100-musl-compat.patch b/package/libs/elfutils/patches/100-musl-compat.patch
index f8e9a29235..9631ce05d6 100644
--- a/package/libs/elfutils/patches/100-musl-compat.patch
+++ b/package/libs/elfutils/patches/100-musl-compat.patch
@@ -2,7 +2,7 @@ https://sourceware.org/bugzilla/show_bug.cgi?id=21002
--- a/lib/system.h
+++ b/lib/system.h
-@@ -30,7 +30,16 @@
+@@ -30,7 +30,18 @@
#define LIB_SYSTEM_H 1
#include <errno.h>
@@ -12,15 +12,17 @@ https://sourceware.org/bugzilla/show_bug.cgi?id=21002
+#else
+#include "err.h"
+#include <stdio.h>
-+#define error(status, errno, ...) \
-+ fflush(stdout); \
-+ warn(__VA_ARGS__); \
-+ if (status) exit(status)
++#define error(status, errno, ...) \
++ do { \
++ fflush(stdout); \
++ warn(__VA_ARGS__); \
++ if (status) exit(status); \
++ } while(0)
+#endif
#include <stddef.h>
#include <stdint.h>
#include <sys/param.h>
-@@ -38,6 +47,10 @@
+@@ -38,6 +49,10 @@
#include <byteswap.h>
#include <unistd.h>