summary refs log tree commit diff
path: root/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'help.c')
-rw-r--r--help.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/help.c b/help.c
index 41c41c2aa1..45a10fedb3 100644
--- a/help.c
+++ b/help.c
@@ -14,6 +14,10 @@
 #include "prompt.h"
 #include "fsmonitor-ipc.h"
 
+#if defined(USE_SQLITE)
+#include <sqlite3.h>
+#endif
+
 struct category_description {
 	uint32_t category;
 	const char *desc;
@@ -718,6 +722,11 @@ void get_version_info(struct strbuf *buf, int show_build_options)
 
 		if (fsmonitor_ipc__is_supported())
 			strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
+
+#if defined(USE_SQLITE)
+		strbuf_addf(buf, "sqlite-headers: %s\n", SQLITE_VERSION);
+		strbuf_addf(buf, "sqlite-library: %s\n", sqlite3_libversion());
+#endif
 	}
 }