summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2002-04-30 13:09:05 +0000
committerdscho <dscho>2002-04-30 13:09:05 +0000
commitdae41e0b3e72620cee8dd496f9f5271d791ee58f (patch)
tree4f1b7713f9abe09f812687d614909cb9d2b9e000
parent5d09096086ceac98f07dbda2557b251996ffe5e8 (diff)
downloadlibtdevnc-dae41e0b3e72620cee8dd496f9f5271d791ee58f.tar.gz
libtdevnc-dae41e0b3e72620cee8dd496f9f5271d791ee58f.zip
more mac
-rw-r--r--Makefile2
-rw-r--r--mac.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6c51b1d..d1940d4 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ RANLIB=ranlib
LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB) $(EXTRALIBS)
# for Mac OS X
-OSX_LIBS = -framework ApplicationServices -framework Carbon
+OSX_LIBS = -framework ApplicationServices -framework Carbon -framework IOKit
# for x11vnc
XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXtst
diff --git a/mac.c b/mac.c
index 27ad9bc..210deef 100644
--- a/mac.c
+++ b/mac.c
@@ -211,7 +211,7 @@ rfbDimmingShutdown(void)
rfbScreenInfoPtr rfbScreen;
-void shutdown(rfbClientPtr cl);
+void rfbShutdown(rfbClientPtr cl);
/* some variables to enable special behaviour */
int startTime = -1, maxSecsToConnect = 0;
@@ -512,7 +512,7 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
#endif
if(startTime>0 && time(0)>startTime+maxSecsToConnect)
- shutdown(0);
+ rfbShutdown(0);
for (i = 0; i < count; i++)
rfbMarkRectAsModified(rfbScreen,
@@ -523,13 +523,13 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
void clientGone(rfbClientPtr cl)
{
- shutdown(cl);
+ rfbShutdown(cl);
}
enum rfbNewClientAction newClient(rfbClientPtr cl)
{
if(startTime>0 && time(0)>startTime+maxSecsToConnect)
- shutdown(cl);
+ rfbShutdown(cl);
if(disconnectAfterFirstClient)
cl->clientGoneHook = clientGone;
@@ -596,7 +596,7 @@ int main(int argc,char *argv[])
return(0); /* never ... */
}
-void shutdown(rfbClientPtr cl)
+void rfbShutdown(rfbClientPtr cl)
{
rfbScreenCleanup(rfbScreen);
rfbDimmingShutdown();