diff --git a/indra/llvfs/lldir_win32.cpp b/indra/llvfs/lldir_win32.cpp
index 277cfeae136e6e01df21f721df17a8e8e5a4e133..f415fe56ed354f860297418ac109f640d2488562 100644
--- a/indra/llvfs/lldir_win32.cpp
+++ b/indra/llvfs/lldir_win32.cpp
@@ -39,6 +39,7 @@
 #include "shlobj.h"
 
 #include <direct.h>
+#include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>