enabled IPV6 builds.
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 17085cd..7614591 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -50,6 +50,9 @@
 ifdef SSPI
   CFLAGS += -DUSE_WINDOWS_SSPI
 endif
+ifdef IPV6
+  CFLAGS += -DENABLE_IPV6
+endif
 COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
 
 # Makefile.inc provides the CSOURCES and HHEADERS defines
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index 7bae329..49f070a 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -58,6 +58,9 @@
 ifdef SSPI
   CFLAGS += -DUSE_WINDOWS_SSPI
 endif
+ifdef IPV6
+  CFLAGS += -DENABLE_IPV6
+endif
 curl_LDADD += -lwsock32 -lws2_32 -lwinmm -L$(ZLIB_PATH) -lz
 
 # Makefile.inc provides the CSOURCES and HHEADERS defines