From 1a3f705fc15086de1c88fa6d7e98118546feaa24 Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Tue, 31 Oct 2000 00:22:41 +0000
Subject: [PATCH] Added import of ntdll.

---
 debugger/Makefile.in                |  2 +-
 dlls/advapi32/Makefile.in           |  2 +-
 dlls/commdlg/Makefile.in            |  2 +-
 dlls/crtdll/Makefile.in             |  2 +-
 dlls/dciman32/Makefile.in           |  1 +
 dlls/dciman32/dciman32.spec         |  2 ++
 dlls/kernel/Makefile.in             |  1 +
 dlls/msnet32/Makefile.in            |  1 +
 dlls/msnet32/msnet32.spec           |  2 ++
 dlls/odbc32/Makefile.in             |  1 +
 dlls/odbc32/odbc32.spec             |  2 ++
 dlls/ole32/Makefile.in              |  2 +-
 dlls/oledlg/Makefile.in             |  1 +
 dlls/oledlg/oledlg.spec             |  2 ++
 dlls/olesvr/Makefile.in             |  1 +
 dlls/olesvr/olesvr32.spec           |  2 ++
 dlls/rasapi32/Makefile.in           |  1 +
 dlls/rasapi32/rasapi32.spec         |  2 ++
 dlls/rpcrt4/Makefile.in             |  1 +
 dlls/rpcrt4/rpcrt4.spec             |  1 +
 dlls/user/Makefile.in               |  4 ++--
 dlls/winsock/Makefile.in            |  2 +-
 libtest/Makefile.in                 | 20 ++++++++++----------
 miscemu/wine.spec                   |  2 ++
 programs/Makefile.in                |  2 +-
 programs/avitools/Makefile.in       |  2 +-
 programs/clock/Makefile.in          |  2 +-
 programs/cmdlgtst/Makefile.in       |  2 +-
 programs/control/Makefile.in        |  2 +-
 programs/notepad/Makefile.in        |  2 +-
 programs/osversioncheck/Makefile.in |  2 +-
 programs/progman/Makefile.in        |  2 +-
 programs/regapi/Makefile.in         |  2 +-
 programs/regtest/Makefile.in        |  2 +-
 programs/uninstaller/Makefile.in    |  2 +-
 programs/view/Makefile.in           |  2 +-
 programs/wcmd/Makefile.in           |  2 +-
 programs/winemine/Makefile.in       |  2 +-
 programs/winhelp/Makefile.in        |  2 +-
 programs/winver/Makefile.in         |  2 +-
 40 files changed, 57 insertions(+), 34 deletions(-)

diff --git a/debugger/Makefile.in b/debugger/Makefile.in
index 1d23073c088..848f14b2c5d 100644
--- a/debugger/Makefile.in
+++ b/debugger/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = winedbg
-IMPORTS   = user32 gdi32 advapi32 kernel32
+IMPORTS   = user32 gdi32 advapi32 kernel32 ntdll
 
 C_SRCS = \
 	break.c \
diff --git a/dlls/advapi32/Makefile.in b/dlls/advapi32/Makefile.in
index 0b22ab35e74..cd4159d3270 100644
--- a/dlls/advapi32/Makefile.in
+++ b/dlls/advapi32/Makefile.in
@@ -4,7 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = advapi32
 SOVERSION = 1.0
-IMPORTS   = kernel32
+IMPORTS   = kernel32 ntdll
 
 C_SRCS = \
 	advapi.c \
diff --git a/dlls/commdlg/Makefile.in b/dlls/commdlg/Makefile.in
index 029ecb9c3d1..0fcd3993de6 100644
--- a/dlls/commdlg/Makefile.in
+++ b/dlls/commdlg/Makefile.in
@@ -5,7 +5,7 @@ VPATH     = @srcdir@
 MODULE    = comdlg32
 SOVERSION = 1.0
 ALTNAMES  = commdlg
-IMPORTS   = shell32 shlwapi comctl32 user32 winspool.drv gdi32 kernel32
+IMPORTS   = shell32 shlwapi comctl32 user32 winspool.drv gdi32 kernel32 ntdll
 
 C_SRCS = \
 	cdlg32.c \
diff --git a/dlls/crtdll/Makefile.in b/dlls/crtdll/Makefile.in
index 805ae768d92..dda4f9e0799 100644
--- a/dlls/crtdll/Makefile.in
+++ b/dlls/crtdll/Makefile.in
@@ -4,7 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = crtdll
 SOVERSION = 1.0
-IMPORTS   = kernel32
+IMPORTS   = kernel32 ntdll
 
 C_SRCS = \
 	crtdll_main.c \
diff --git a/dlls/dciman32/Makefile.in b/dlls/dciman32/Makefile.in
index 02958ccda10..fa4b6dca4ef 100644
--- a/dlls/dciman32/Makefile.in
+++ b/dlls/dciman32/Makefile.in
@@ -4,6 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = dciman32
 SOVERSION = 1.0
+IMPORTS   = ntdll
 
 C_SRCS = dciman_main.c
 
diff --git a/dlls/dciman32/dciman32.spec b/dlls/dciman32/dciman32.spec
index 9d1c782db23..a6aeb765dc0 100644
--- a/dlls/dciman32/dciman32.spec
+++ b/dlls/dciman32/dciman32.spec
@@ -1,6 +1,8 @@
 name	dciman32
 type	win32
 
+import	ntdll.dll
+
 @ stub    DCIBeginAccess
 @ stub    DCICloseProvider
 @ stub    DCICreateOffscreen
diff --git a/dlls/kernel/Makefile.in b/dlls/kernel/Makefile.in
index d4f3c42ca1b..1e655ef7eb5 100644
--- a/dlls/kernel/Makefile.in
+++ b/dlls/kernel/Makefile.in
@@ -5,6 +5,7 @@ VPATH     = @srcdir@
 MODULE    = kernel32
 SOVERSION = 1.0
 ALTNAMES  = comm kernel stress system toolhelp windebug win87em wprocs
+IMPORTS   = ntdll
 
 C_SRCS = \
 	comm.c \
diff --git a/dlls/msnet32/Makefile.in b/dlls/msnet32/Makefile.in
index 9aae29e17fa..d1a0a5527cd 100644
--- a/dlls/msnet32/Makefile.in
+++ b/dlls/msnet32/Makefile.in
@@ -4,6 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = msnet32
 SOVERSION = 1.0
+IMPORTS   = ntdll
 
 C_SRCS = msnet_main.c
 
diff --git a/dlls/msnet32/msnet32.spec b/dlls/msnet32/msnet32.spec
index 7b316dd3a8e..384dc446c46 100644
--- a/dlls/msnet32/msnet32.spec
+++ b/dlls/msnet32/msnet32.spec
@@ -1,6 +1,8 @@
 name msnet32
 type win32
 
+import ntdll.dll
+
   1 stub MSNET32_1
   2 stub MSNET32_2
   3 stub MSNET32_3
diff --git a/dlls/odbc32/Makefile.in b/dlls/odbc32/Makefile.in
index 2ec209010c9..b5d27ca3869 100644
--- a/dlls/odbc32/Makefile.in
+++ b/dlls/odbc32/Makefile.in
@@ -4,6 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = odbc32
 SOVERSION = 1.0
+IMPORTS   = ntdll
 
 C_SRCS = \
 	proxyodbc.c 
diff --git a/dlls/odbc32/odbc32.spec b/dlls/odbc32/odbc32.spec
index 6f64b9ea521..07a293f985c 100644
--- a/dlls/odbc32/odbc32.spec
+++ b/dlls/odbc32/odbc32.spec
@@ -2,6 +2,8 @@ name	odbc32
 type	win32
 init    MAIN_OdbcInit
 
+import	ntdll.dll
+
 001 stdcall SQLAllocConnect(long ptr) SQLAllocConnect
 002 stdcall SQLAllocEnv(ptr)  SQLAllocEnv
 003 stdcall SQLAllocStmt(long ptr) SQLAllocStmt
diff --git a/dlls/ole32/Makefile.in b/dlls/ole32/Makefile.in
index 3b5603ce201..4761600cc81 100644
--- a/dlls/ole32/Makefile.in
+++ b/dlls/ole32/Makefile.in
@@ -5,7 +5,7 @@ VPATH     = @srcdir@
 MODULE    = ole32
 SOVERSION = 1.0
 ALTNAMES  = ole2 ole2nls ole2conv ole2prox ole2thk storage compobj
-IMPORTS   = advapi32 user32 gdi32 rpcrt4 kernel32
+IMPORTS   = advapi32 user32 gdi32 rpcrt4 kernel32 ntdll
 
 C_SRCS = \
 	antimoniker.c \
diff --git a/dlls/oledlg/Makefile.in b/dlls/oledlg/Makefile.in
index 4c9d16918d5..6ee62d1c0be 100644
--- a/dlls/oledlg/Makefile.in
+++ b/dlls/oledlg/Makefile.in
@@ -4,6 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = oledlg
 SOVERSION = 1.0
+IMPORTS   = ntdll
 
 C_SRCS = \
 	oledlg_main.c
diff --git a/dlls/oledlg/oledlg.spec b/dlls/oledlg/oledlg.spec
index 171702c43cb..594a10fe4ba 100644
--- a/dlls/oledlg/oledlg.spec
+++ b/dlls/oledlg/oledlg.spec
@@ -1,6 +1,8 @@
 name	oledlg
 type	win32
 
+import	ntdll.dll
+
   1 stdcall OleUIAddVerbMenuA(ptr str long long long long long long ptr) OleUIAddVerbMenuA
   2 stdcall OleUICanConvertOrActivateAs(ptr long long) OleUICanConvertOrActivateAs
   3 stdcall OleUIInsertObjectA(ptr) OleUIInsertObjectA
diff --git a/dlls/olesvr/Makefile.in b/dlls/olesvr/Makefile.in
index 8f5faadb7fa..1635a56320b 100644
--- a/dlls/olesvr/Makefile.in
+++ b/dlls/olesvr/Makefile.in
@@ -5,6 +5,7 @@ VPATH     = @srcdir@
 MODULE    = olesvr32
 SOVERSION = 1.0
 ALTNAMES  = olesvr
+IMPORTS   = ntdll
 
 C_SRCS = \
 	olesvr_main.c
diff --git a/dlls/olesvr/olesvr32.spec b/dlls/olesvr/olesvr32.spec
index 46df44657eb..41892c3f318 100644
--- a/dlls/olesvr/olesvr32.spec
+++ b/dlls/olesvr/olesvr32.spec
@@ -1,6 +1,8 @@
 name	olesvr32
 type	win32
 
+import	ntdll.dll
+
  1 stub WEP
  2 stdcall OleRegisterServer(str ptr ptr long long) OleRegisterServer
  3 stub OleRevokeServer
diff --git a/dlls/rasapi32/Makefile.in b/dlls/rasapi32/Makefile.in
index c560e31b837..f26c9bcebc7 100644
--- a/dlls/rasapi32/Makefile.in
+++ b/dlls/rasapi32/Makefile.in
@@ -5,6 +5,7 @@ VPATH     = @srcdir@
 MODULE    = rasapi32
 SOVERSION = 1.0
 ALTNAMES  = rasapi16
+IMPORTS   = ntdll
 
 C_SRCS = rasapi.c 
 
diff --git a/dlls/rasapi32/rasapi32.spec b/dlls/rasapi32/rasapi32.spec
index d3b0b77bb83..920903df97a 100644
--- a/dlls/rasapi32/rasapi32.spec
+++ b/dlls/rasapi32/rasapi32.spec
@@ -1,6 +1,8 @@
 name	rasapi32
 type	win32
 
+import	ntdll.dll
+
 500 stub	RnaEngineRequest
 501 stub	DialEngineRequest
 502 stub	SuprvRequest
diff --git a/dlls/rpcrt4/Makefile.in b/dlls/rpcrt4/Makefile.in
index 7c78e71b309..cd594a63fc5 100644
--- a/dlls/rpcrt4/Makefile.in
+++ b/dlls/rpcrt4/Makefile.in
@@ -4,6 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = rpcrt4
 SOVERSION = 1.0
+IMPORTS   = ntdll
 
 C_SRCS = \
 	rpcrt4_main.c
diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec
index c82e32ba8e1..8d9b149a8b8 100644
--- a/dlls/rpcrt4/rpcrt4.spec
+++ b/dlls/rpcrt4/rpcrt4.spec
@@ -2,6 +2,7 @@ name	rpcrt4
 type	win32
 init	RPCRT4_LibMain
 
+import	ntdll.dll
 
 @ stdcall UuidCreate(ptr) UuidCreate
 @ stdcall RpcStringFreeA(ptr) RpcStringFreeA
diff --git a/dlls/user/Makefile.in b/dlls/user/Makefile.in
index 9039cdf0ddb..f0720b3be67 100644
--- a/dlls/user/Makefile.in
+++ b/dlls/user/Makefile.in
@@ -5,7 +5,7 @@ VPATH     = @srcdir@
 MODULE    = user32
 SOVERSION = 1.0
 ALTNAMES  = user keyboard ddeml display mouse
-IMPORTS   = gdi32 advapi32 kernel32
+IMPORTS   = gdi32 advapi32 kernel32 ntdll
 
 C_SRCS = \
 	bidi16.c \
@@ -42,7 +42,7 @@ EXTRASUBDIRS = \
 
 @MAKE_DLL_RULES@
 
-$(EXTRA_OBJS): $(TOOLSUBDIRS) dummy
+$(EXTRA_OBJS): dummy
 	@cd `dirname $@` && $(MAKE) `basename $@`
 
 # Special rules for 16-bit resource files
diff --git a/dlls/winsock/Makefile.in b/dlls/winsock/Makefile.in
index f7f195c019b..b50ac50d2a2 100644
--- a/dlls/winsock/Makefile.in
+++ b/dlls/winsock/Makefile.in
@@ -5,7 +5,7 @@ VPATH     = @srcdir@
 MODULE    = ws2_32
 SOVERSION = 1.0
 ALTNAMES  = winsock
-IMPORTS   = user32 kernel32
+IMPORTS   = user32 kernel32 ntdll
 
 C_SRCS = \
 	async.c \
diff --git a/libtest/Makefile.in b/libtest/Makefile.in
index 90e8714bb99..bf8a05d304a 100644
--- a/libtest/Makefile.in
+++ b/libtest/Makefile.in
@@ -26,35 +26,35 @@ all: $(PROGRAMS)
 @MAKE_RULES@
 
 expand: expand.o expand.spec.o
-	$(CC) -o expand $+ -L$(DLLDIR) -llz32 $(DLL_LINK) $(LIBS)
+	$(CC) -o expand $+ -L$(DLLDIR) -llz32 -lntdll $(DLL_LINK) $(LIBS)
 
 hello: hello.o hello.spec.o
-	$(CC) -o hello $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o hello $+ -L$(DLLDIR) -luser32 -lgdi32 -lkernel32 -lntdll $(DLL_LINK) $(LIBS)
 
 hello2: hello2.o hello2.spec.o
-	$(CC) -o hello2 $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o hello2 $+ -L$(DLLDIR) -luser32 -lgdi32 -lkernel32 -lntdll $(DLL_LINK) $(LIBS)
 
 hello3: hello3.o hello3.spec.o
-	$(CC) -o hello3 $+  -L$(DLLDIR) -ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -lkernel32 -lole32 -lrpcrt4 -lshell32 -lshlwapi -luser32 -lwinspool.drv $(DLL_LINK) $(LIBS)
+	$(CC) -o hello3 $+  -L$(DLLDIR) -ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -lkernel32 -lole32 -lrpcrt4 -lshell32 -lshlwapi -luser32 -lwinspool.drv -lntdll $(DLL_LINK) $(LIBS)
 
 hello3.spec.c: hello3res.res
 
 hello4: hello4.o hello4.spec.o
-	$(CC) -o hello4 $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o hello4 $+ -L$(DLLDIR) -luser32 -lgdi32 -lkernel32 -lntdll $(DLL_LINK) $(LIBS)
 
 hello5: hello5.o hello5.spec.o
-	$(CC) -o hello5 $+ $(DLL_LINK) $(LIBS)
+	$(CC) -o hello5 $+ -L$(DLLDIR) -lntdll $(DLL_LINK) $(LIBS)
 
 new: new.o new.spec.o
-	$(CC) -o new $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o new $+ -L$(DLLDIR) -luser32 -lgdi32 -lkernel32 -lntdll $(DLL_LINK) $(LIBS)
 
 rolex: rolex.o rolex.spec.o
-	$(CC) -o rolex $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o rolex $+ -L$(DLLDIR) -luser32 -lgdi32 -lkernel32 -lntdll $(DLL_LINK) $(LIBS)
 
 vartest: vartest.o vartest.spec.o
-	$(CC) -o vartest $+ -L$(DLLDIR) -ladvapi32 -lcomctl32 -lgdi32 -lkernel32 -lole32 -loleaut32 -lrpcrt4 -luser32 $(DLL_LINK) $(LIBS)
+	$(CC) -o vartest $+ -L$(DLLDIR) -ladvapi32 -lcomctl32 -lgdi32 -lkernel32 -lole32 -loleaut32 -lrpcrt4 -luser32 -lntdll $(DLL_LINK) $(LIBS)
 
 volinfo: volinfo.o volinfo.spec.o
-	$(CC) -o volinfo $+ $(DLL_LINK) $(LIBS)
+	$(CC) -o volinfo $+ -L$(DLLDIR) -lntdll $(DLL_LINK) $(LIBS)
 
 ### Dependencies:
diff --git a/miscemu/wine.spec b/miscemu/wine.spec
index 02ced9437e2..9917659b4ab 100644
--- a/miscemu/wine.spec
+++ b/miscemu/wine.spec
@@ -2,3 +2,5 @@ name	wine
 mode	cuiexe_no_main
 type	win32
 init	wine_initial_task
+
+import	ntdll.dll
diff --git a/programs/Makefile.in b/programs/Makefile.in
index d50d97494d7..1e49f00f13c 100644
--- a/programs/Makefile.in
+++ b/programs/Makefile.in
@@ -9,8 +9,8 @@ SUBDIRS = \
 	clock \
 	cmdlgtst \
 	control \
-	osversioncheck \
 	notepad \
+	osversioncheck \
 	progman \
 	regapi \
 	regtest \
diff --git a/programs/avitools/Makefile.in b/programs/avitools/Makefile.in
index 2f7e97f111f..1ba2e94670e 100644
--- a/programs/avitools/Makefile.in
+++ b/programs/avitools/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = icinfo aviinfo aviplay
-IMPORTS   = msvfw32 winmm ddraw x11drv user32 gdi32 kernel32
+IMPORTS   = msvfw32 winmm ddraw x11drv user32 gdi32 kernel32 ntdll
 
 SPEC_SRCS = \
 	icinfo.spec \
diff --git a/programs/clock/Makefile.in b/programs/clock/Makefile.in
index b2453d57647..78355d12727 100644
--- a/programs/clock/Makefile.in
+++ b/programs/clock/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = clock
-IMPORTS   = advapi32 comctl32 shlwapi shell32 comdlg32 ole32 rpcrt4 winspool.drv user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 shlwapi shell32 comdlg32 ole32 rpcrt4 winspool.drv user32 gdi32 kernel32 ntdll
 
 LICENSELANG = En
 
diff --git a/programs/cmdlgtst/Makefile.in b/programs/cmdlgtst/Makefile.in
index 1e023b2cac9..7b98415f3f5 100644
--- a/programs/cmdlgtst/Makefile.in
+++ b/programs/cmdlgtst/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = cmdlgtst
-IMPORTS   = advapi32 comctl32 comdlg32 shell32 shlwapi ole32 rpcrt4 winspool.drv user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 comdlg32 shell32 shlwapi ole32 rpcrt4 winspool.drv user32 gdi32 kernel32 ntdll
 
 C_SRCS = \
 	cmdlgtst.c
diff --git a/programs/control/Makefile.in b/programs/control/Makefile.in
index cb615940688..a43f96aabfb 100644
--- a/programs/control/Makefile.in
+++ b/programs/control/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = control
-IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 user32 gdi32 kernel32 ntdll
 
 C_SRCS = control.c
 
diff --git a/programs/notepad/Makefile.in b/programs/notepad/Makefile.in
index d7cda1effaf..c6c23a53ecf 100644
--- a/programs/notepad/Makefile.in
+++ b/programs/notepad/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = notepad
-IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 comdlg32 winspool.drv user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 comdlg32 winspool.drv user32 gdi32 kernel32 ntdll
 
 LICENSELANG = En
 
diff --git a/programs/osversioncheck/Makefile.in b/programs/osversioncheck/Makefile.in
index 48aded9c4b3..db86709d8e2 100644
--- a/programs/osversioncheck/Makefile.in
+++ b/programs/osversioncheck/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = osversioncheck
-IMPORTS   = kernel32
+IMPORTS   = kernel32 ntdll
 
 C_SRCS = osversioncheck.c
 
diff --git a/programs/progman/Makefile.in b/programs/progman/Makefile.in
index 98b426445cb..e498f9bb824 100644
--- a/programs/progman/Makefile.in
+++ b/programs/progman/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = progman
-IMPORTS   = shlwapi shell32 comdlg32 ole32 rpcrt4 winspool.drv user32 gdi32 kernel32
+IMPORTS   = shlwapi shell32 comdlg32 ole32 rpcrt4 winspool.drv user32 gdi32 kernel32 ntdll
 
 LICENSELANG = En
 
diff --git a/programs/regapi/Makefile.in b/programs/regapi/Makefile.in
index ef1aa0a4f48..a7d9a9657ee 100644
--- a/programs/regapi/Makefile.in
+++ b/programs/regapi/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = regapi
-IMPORTS   = kernel32
+IMPORTS   = kernel32 ntdll
 
 C_SRCS = \
 	regapi.c
diff --git a/programs/regtest/Makefile.in b/programs/regtest/Makefile.in
index e5a2b4480d5..48fa909e368 100644
--- a/programs/regtest/Makefile.in
+++ b/programs/regtest/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = regtest
-IMPORTS   = kernel32
+IMPORTS   = kernel32 ntdll
 
 C_SRCS = regtest.c
 
diff --git a/programs/uninstaller/Makefile.in b/programs/uninstaller/Makefile.in
index 62e008366ac..5bc6be83d92 100644
--- a/programs/uninstaller/Makefile.in
+++ b/programs/uninstaller/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = uninstaller
-IMPORTS   = user32 gdi32 kernel32
+IMPORTS   = user32 gdi32 kernel32 ntdll
 
 LICENSELANG = En
 
diff --git a/programs/view/Makefile.in b/programs/view/Makefile.in
index 4f4c4fcf633..bd45f438572 100644
--- a/programs/view/Makefile.in
+++ b/programs/view/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = view
-IMPORTS   = advapi32 comctl32 comdlg32 shell32 shlwapi ole32 rpcrt4 winspool.drv user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 comdlg32 shell32 shlwapi ole32 rpcrt4 winspool.drv user32 gdi32 kernel32 ntdll
 
 C_SRCS = \
 	init.c \
diff --git a/programs/wcmd/Makefile.in b/programs/wcmd/Makefile.in
index 2b960e06cf4..3d7e3a4f32d 100644
--- a/programs/wcmd/Makefile.in
+++ b/programs/wcmd/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = wcmd
-IMPORTS   = user32 gdi32 kernel32
+IMPORTS   = user32 gdi32 kernel32 ntdll
 
 C_SRCS = \
 	batch.c \
diff --git a/programs/winemine/Makefile.in b/programs/winemine/Makefile.in
index c9bc2d1937e..ad023f1930f 100644
--- a/programs/winemine/Makefile.in
+++ b/programs/winemine/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = winemine
-IMPORTS   = user32 gdi32 kernel32
+IMPORTS   = user32 gdi32 kernel32 ntdll
 
 LICENSELANG = En
 
diff --git a/programs/winhelp/Makefile.in b/programs/winhelp/Makefile.in
index 831c7d7cfcb..696fa28a32d 100644
--- a/programs/winhelp/Makefile.in
+++ b/programs/winhelp/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = winhelp hlp2sgml
-IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 comdlg32 winspool.drv user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 comdlg32 winspool.drv user32 gdi32 kernel32 ntdll
 
 C_SRCS = \
 	winhelp.c \
diff --git a/programs/winver/Makefile.in b/programs/winver/Makefile.in
index ce5b9735ceb..e9bf966b501 100644
--- a/programs/winver/Makefile.in
+++ b/programs/winver/Makefile.in
@@ -5,7 +5,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = none
 PROGRAMS  = winver
-IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 user32 gdi32 kernel32
+IMPORTS   = advapi32 comctl32 shlwapi shell32 ole32 rpcrt4 user32 gdi32 kernel32 ntdll
 
 C_SRCS = winver.c
 
-- 
GitLab