--- sqlite-src-3490200/main.mk.orig	2025-05-09 11:44:35.719952400 +0200
+++ sqlite-src-3490200/main.mk	2025-05-09 11:46:29.438013800 +0200
@@ -2081,7 +2081,7 @@
 # How to build sqldiff$(T.exe) depends on $(LINK_TOOLS_DYNAMICALLY)
 #
 sqldiff.0.deps = $(TOP)/tool/sqldiff.c $(TOP)/ext/misc/sqlite3_stdio.h sqlite3.o sqlite3.h
-sqldiff.0.rules = $(T.link) -o $@ $(TOP)/tool/sqldiff.c sqlite3.o $(LDFLAGS.libsqlite3)
+sqldiff.0.rules = $(T.link) -o $@ $(TOP)/tool/sqldiff.c $(TOP)/ext/misc/sqlite3_stdio.c sqlite3.o $(LDFLAGS.libsqlite3)
 sqldiff.1.deps = $(TOP)/tool/sqldiff.c $(TOP)/ext/misc/sqlite3_stdio.h $(libsqlite3.DLL)
 sqldiff.1.rules = $(T.link) -o $@ $(TOP)/tool/sqldiff.c -L. -lsqlite3 $(LDFLAGS.configure)
 sqldiff$(T.exe): $(sqldiff.$(LINK_TOOLS_DYNAMICALLY).deps)
