2023-07-17 06:43:13 +00:00
|
|
|
From aaa029bcee68298695b7c4278c90b6bc320d098c Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
|
|
Date: Fri, 21 Aug 2020 06:52:07 +0000
|
2023-07-25 20:18:13 +00:00
|
|
|
Subject: [PATCH 10/35] Don't declare asprintf if defined as a macro.
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
include/libiberty.h | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/include/libiberty.h b/include/libiberty.h
|
2023-05-15 08:15:31 +00:00
|
|
|
index 1d5c779fcff..19e3cb1e31c 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/include/libiberty.h
|
|
|
|
+++ b/include/libiberty.h
|
2021-11-25 09:09:10 +00:00
|
|
|
@@ -652,8 +652,11 @@ extern void *bsearch_r (const void *, const void *,
|
2020-08-21 10:18:02 +00:00
|
|
|
/* 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. */
|
2023-05-15 08:15:31 +00:00
|
|
|
--
|
2023-06-09 18:45:27 +00:00
|
|
|
2.41.0
|
2023-05-15 08:15:31 +00:00
|
|
|
|