Commit fd2931c0 authored by dscho's avatar dscho

OSXvnc-server compile fixes

parent a73243f8
......@@ -2,7 +2,10 @@ INCLUDES=-I.
VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
# for Solaris
EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
#EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
# for FreeBSD
#EXTRAINCLUDES=-I/usr/X11R6/include
# Uncomment these two lines to enable use of PThreads
#PTHREADDEF = -DHAVE_PTHREADS
......@@ -14,7 +17,7 @@ FLAG24 = -DALLOW24BPP
OPTFLAGS=-g -Wall
#OPTFLAGS=-O2 -Wall
CFLAGS=$(OPTFLAGS) $(PTHREADDEF) $(FLAG24) $(INCLUDES) -DBACKCHANNEL
CFLAGS=$(OPTFLAGS) $(PTHREADDEF) $(FLAG24) $(INCLUDES) $(EXTRAINCLUDES) -DBACKCHANNEL
RANLIB=ranlib
LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB) $(EXTRALIBS)
......@@ -101,7 +104,7 @@ zippy: zippy.o libvncserver.a
clean:
rm -f $(OBJS) *~ core "#"* *.bak *.orig storepasswd.o \
mac.o example.o pnmshow.o pnmshow24.o sratest.o \
x11vnc.o mac.o example.o pnmshow.o pnmshow24.o sratest.o \
blooptest.o $(OBJS)
realclean: clean
......
......@@ -225,7 +225,7 @@ static int keyTable[] = {
};
void
KbdAddEvent(Bool down, KeySym keySym, struct rfbClientRec* cl)
KbdAddEvent(Bool down, KeySym keySym, struct _rfbClientRec* cl)
{
int i;
CGKeyCode keyCode = -1;
......@@ -349,7 +349,7 @@ void clientGone(rfbClientPtr cl)
exit(0);
}
void newClient(rfbClientPtr cl)
enum rfbNewClientAction newClient(rfbClientPtr cl)
{
if(startTime>0 && time(0)>startTime+maxSecsToConnect)
exit(0);
......@@ -358,6 +358,8 @@ void newClient(rfbClientPtr cl)
cl->clientGoneHook = clientGone;
cl->clientData=(void*)((viewOnly)?-1:0);
return(RFB_CLIENT_ACCEPT);
}
int main(int argc,char *argv[])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment