summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-08-28 06:17:46 +1000
committerDave Airlie <airlied@linux.ie>2020-09-01 21:44:06 +0000
commit96fbe9a02243aed0ae1fc75002ebaaed3de9d687 (patch)
tree800ab7fef39c06e4c584a26e6ba08b96a155b2f1
parent1a5516ab51a44ed3177c042b6437069df49e9276 (diff)
util: add missing extern C
This code is included in c++ code via disk_cache in theory, in practice it never has been.
-rw-r--r--src/util/build_id.h7
1 files changed, 7 insertions, 0 deletions
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 <stdint.h>
@@ -41,4 +45,7 @@ build_id_data(const struct build_id_note *note);
#endif
+#ifdef __cplusplus
+}
+#endif
#endif /* BUILD_ID_H */