diff --git a/lib/if2ip.c b/lib/if2ip.c
index 84785a58057e5ffb5c6acaec79fcac5d33f7d9d0..0dd403ac9077419d085e5c714ed85b141f20a0bc 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -27,7 +27,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -68,7 +67,6 @@
 #endif
 
 #ifdef	VMS
-#define	IOCTL_3_ARGS
 #include <inet.h>
 #endif
 
@@ -79,10 +77,6 @@
 #include "memdebug.h"
 #endif
 
-#ifdef DJGPP
-#define IOCTL_3_ARGS
-#endif
-
 #define SYS_ERROR -1
 
 char *Curl_if2ip(char *interface, char *buf, int buf_size)
diff --git a/lib/setup.h b/lib/setup.h
index 1d78dc6d2d13ec6438363054f29de0da727de48d..20120d8a6f3677c4bb6d342b65604476fdeb6bf5 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -248,4 +248,12 @@ typedef struct in_addr Curl_ipconnect;
 #define SIZEOF_CURL_OFF_T sizeof(curl_off_t)
 #endif
 
+#ifdef VMS
+#define IOCTL_3_ARGS
+#endif
+
+#ifdef mpeix
+#define IOCTL_3_ARGS
+#endif
+
 #endif /* __CONFIG_H */