#include <stdlib.h>
diff --git a/dlfcn.c b/dlfcn.c
index a91e963..b356558 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -27,6 +27,7 @@
#include <windows.h>
#include <psapi.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef SHARED
#define DLFCN_WIN32_EXPORTS