From 14bc2dcaae0e08bd4d5a4406b6778feaeb01ce7c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 28 Aug 2020 06:17:46 +1000 Subject: [PATCH] util: add missing extern C This code is included in c++ code via disk_cache in theory, in practice it never has been. Reviewed-by: Jason Ekstrand Part-of: --- src/util/build_id.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/build_id.h b/src/util/build_id.h index 1872ca5c7e5..2ff596e0b99 100644 --- a/src/util/build_id.h +++ b/src/util/build_id.h @@ -24,6 +24,10 @@ #ifndef BUILD_ID_H #define BUILD_ID_H +#ifdef __cplusplus +extern "C" { +#endif + #ifdef HAVE_DL_ITERATE_PHDR #include @@ -41,4 +45,7 @@ build_id_data(const struct build_id_note *note); #endif +#ifdef __cplusplus +} +#endif #endif /* BUILD_ID_H */