# $Id$
+PREFIX = C:/Tewi
+
CC = ../vc6.sh
AR = lib
-AR_FLAGS = /out:
+AR_FLAGS = /nologo /out:
CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -fPIC
LDFLAGS =
LIBS = -lws2_32 -ladvapi32 -llibcmt
#ifdef NO_IPV6
addresses[i].sin_family = AF_INET;
addresses[i].sin_addr.s_addr = INADDR_ANY;
- addresses[i].sin_port = htons(config.ports[i]);
+ addresses[i].sin_port = htons(config.ports[i] & 0xffff);
#else
addresses[i].sin6_family = AF_INET6;
addresses[i].sin6_addr = in6addr_any;
- addresses[i].sin6_port = htons(config.ports[i]);
+ addresses[i].sin6_port = htons(config.ports[i] & 0xffff);
#endif
if(bind(sock, (struct sockaddr*)&addresses[i], sizeof(addresses[i])) < 0) {
close_socket(sock);
#elif defined(__HAIKU__)
exit_thread(0);
#endif
- ;
+ return 0;
}
#ifdef SERVICE
"NetBSD"
#elif defined(__linux__)
"Linux"
-#elif defined(__MINGW32__) || defined(_MSC_VER)
- "Windows"
+#elif defined(__MINGW32__)
+ "Windows-MinGW32"
+#elif defined(_MSC_VER)
+ "Windows-MSVC"
#elif defined(__HAIKU__)
"Haiku"
#elif defined(__CYGWIN__)