Both debuginfod.h and libdwfl.h have a simple typedef for struct
debuginfod_client. Some compilers pedantically warn when including
both headers that such typedefs are only officially supported in
C11. So guard them with _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF to
make them happy.
https://sourceware.org/bugzilla/show_bug.cgi?id=30077
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2023-02-06 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod.h.in: Guard debuginfod_client typedef with
+ _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF.
+
2023-01-10 Mark Wielaard <mark@klomp.org>
* debuginfod-client.c (debuginfod_query_server): Use
#define DEBUGINFOD_SONAME "@LIBDEBUGINFOD_SONAME@"
/* Handle for debuginfod-client connection. */
+#ifndef _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF
typedef struct debuginfod_client debuginfod_client;
+#define _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF 1
+#endif
#ifdef __cplusplus
extern "C" {
+2023-02-06 Mark Wielaard <mark@klomp.org>
+
+ * libdwfl.h: Guard debuginfod_client typedef with
+ _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF.
+
2022-12-21 Mark Wielaard <mark@klomp.org>
* core-file.c: Don't undef _.
typedef struct Dwfl_Frame Dwfl_Frame;
/* Handle for debuginfod-client connection. */
+#ifndef _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF
typedef struct debuginfod_client debuginfod_client;
+#define _ELFUTILS_DEBUGINFOD_CLIENT_TYPEDEF 1
+#endif
/* Callbacks. */
typedef struct