Merge pull request #76 from pali/master Fix compilation with older environments
diff --git a/dlfcn.c b/dlfcn.c
index a45a619..6f5da80 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>