mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
This was missed in initial loongarch bringup, apparently. Closes: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/88144
29 lines
895 B
Diff
29 lines
895 B
Diff
From 62966418472466142a9962892177f4b1f9f56944 Mon Sep 17 00:00:00 2001
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
Date: Fri, 21 Aug 2020 06:52:07 +0000
|
|
Subject: [PATCH] Don't declare asprintf if defined as a macro.
|
|
|
|
---
|
|
include/libiberty.h | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/include/libiberty.h b/include/libiberty.h
|
|
index d4e8791b14b..c074980ed80 100644
|
|
--- a/include/libiberty.h
|
|
+++ b/include/libiberty.h
|
|
@@ -678,8 +678,11 @@ extern void *bsearch_r (const void *, const void *,
|
|
/* Like sprintf but provides a pointer to malloc'd storage, which must
|
|
be freed by the caller. */
|
|
|
|
+/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
|
|
+#ifndef asprintf
|
|
extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
|
|
#endif
|
|
+#endif
|
|
|
|
/* Like asprintf but allocates memory without fail. This works like
|
|
xmalloc. */
|
|
--
|
|
2.50.1
|
|
|