static long start;
-#ifndef HAVE_MINGW
+#ifndef HAVE_WINDOWS
void ifconfig_header(FILE *out) {
fprintf(out, "#!/bin/sh\n");
start = ftell(out);
return;
}
-#elif defined(HAVE_MINGW)
+#elif defined(HAVE_WINDOWS)
switch(address.type) {
case SUBNET_MAC:
break;
case SUBNET_IPV4:
- fprintf(out, "netsh inetface ipv4 set address \"%%INTERFACE%%\" static %s\n", address_str);
+ fprintf(out, "netsh interface ipv4 set address \"%%INTERFACE%%\" static %s\n", address_str);
break;
case SUBNET_IPV6:
- fprintf(out, "netsh inetface ipv6 set address \"%%INTERFACE%%\" %s\n", address_str);
+ fprintf(out, "netsh interface ipv6 set address \"%%INTERFACE%%\" %s\n", address_str);
break;
default:
}
}
-#elif defined(HAVE_MINGW)
+#elif defined(HAVE_WINDOWS)
if(*gateway_str) {
switch(subnet.type) {