mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Changed Makefile to build stripped DLLs and fixed typo in ipxwrapper.c
This commit is contained in:
parent
9f14ffce42
commit
c3f2dc352c
6
Makefile
6
Makefile
@ -28,13 +28,13 @@ clean:
|
||||
rm -f src/*_stubs.s
|
||||
|
||||
ipxwrapper.dll: $(IPXWRAPPER_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi
|
||||
|
||||
wsock32.dll: $(WSOCK32_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o wsock32.dll $(WSOCK32_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o wsock32.dll $(WSOCK32_DEPS)
|
||||
|
||||
mswsock.dll: $(MSWSOCK_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o mswsock.dll $(MSWSOCK_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o mswsock.dll $(MSWSOCK_DEPS)
|
||||
|
||||
src/ipxwrapper.o: src/ipxwrapper.c src/ipxwrapper.h
|
||||
$(CC) $(CFLAGS) -c -o src/ipxwrapper.o src/ipxwrapper.c
|
||||
|
@ -302,7 +302,7 @@ static int init_router(void) {
|
||||
* The router thread recieves packets from the listening port and forwards them
|
||||
* to the UDP sockets which emulate IPX.
|
||||
*/
|
||||
static DWORD WINAPI router_main(LPVOID buf) {
|
||||
static DWORD WINAPI router_main(LPVOID notused) {
|
||||
ipx_packet *packet = router_buf;
|
||||
int addrlen, rval, sval;
|
||||
unsigned char f6[] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
|
||||
@ -372,7 +372,7 @@ static DWORD WINAPI router_main(LPVOID buf) {
|
||||
continue;
|
||||
}
|
||||
|
||||
sval = r_sendto(sockptr->fd, (char*)buf, rval, 0, (struct sockaddr*)&addr, addrlen);
|
||||
sval = r_sendto(sockptr->fd, (char*)packet, rval, 0, (struct sockaddr*)&addr, addrlen);
|
||||
if(sval == -1) {
|
||||
debug("Error relaying packet: %s", w32_error(WSAGetLastError()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user