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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6035>
diff --git a/src/util/build_id.h b/src/util/build_id.h
index 1872ca5..2ff596e 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 @@
 
 #endif
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* BUILD_ID_H */