diff --git a/indra/llvfs/lldir_win32.cpp b/indra/llvfs/lldir_win32.cpp
index 55f0a6338dc239c874e7eee57e86788e4ab813ba..4d8aa0e18968622ead1a3699dd05dd2e5e33fedb 100644
--- a/indra/llvfs/lldir_win32.cpp
+++ b/indra/llvfs/lldir_win32.cpp
@@ -35,6 +35,7 @@
 #include <Knownfolders.h>
 #include <iostream>
 #include <map>
+#include <Objbase.h>                // CoTaskMemFree()
 
 #include <direct.h>
 #include <errno.h>