IRIX compile changes

This commit is contained in:
jsorg71 2004-09-30 02:58:09 +00:00
parent 8a0a25f9c2
commit 5d8d552eba
2 changed files with 5 additions and 3 deletions

View File

@ -4,12 +4,13 @@ XRDPOBJ = xrdp.o os_calls.o xrdp_tcp.o xrdp_iso.o xrdp_mcs.o xrdp_sec.o xrdp_rdp
xrdp_painter.o xrdp_list.o xrdp_region.o xrdp_cache.o xrdp_font.o
#CFLAGS = -Wall -O2 -DXRDP_DEBUG
CFLAGS = -Wall -O2
LDFLAGS = -L /usr/gnu/lib -lpthread -lcrypto
CC = gcc
all: xrdp
xrdp: $(XRDPOBJ)
$(CC) -o xrdp $(XRDPOBJ) -lpthread -lcrypto
$(CC) $(LDFLAGS) -o xrdp $(XRDPOBJ)
clean:
rm -f *.o xrdp

View File

@ -32,6 +32,7 @@
#include <netinet/tcp.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <openssl/rc4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
@ -258,11 +259,11 @@ int g_tcp_listen(int sck)
int g_tcp_accept(int sck)
{
struct sockaddr_in s;
int i;
unsigned int i;
i = sizeof(struct sockaddr_in);
memset(&s, 0, i);
return accept(sck, (struct sockaddr*)&s, (socklen_t*)&i);
return accept(sck, (struct sockaddr*)&s, &i);
}
/*****************************************************************************/