diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h
index 3c111f8345d1d297704a230d522cce31aeee335a..bbee16e9a1a180ffe980cec3eb98b9ae2bba6818 100644
--- a/src/xpdev/filewrap.h
+++ b/src/xpdev/filewrap.h
@@ -57,6 +57,7 @@
 	#include <sys/stat.h>		/* S_IREAD */
 	#include <fcntl.h>			/* O_BINARY */
 	#include <windows.h>		/* OF_SHARE_ */
+	#include <share.h>			/* SH_DENY */
 
 	#define sopen(f,o,s)		_sopen(f,o,s,S_IREAD|S_IWRITE)
 	#define close(f)			_close(f)