socksified vncviewer

Karl Hakimian hakimian "at" aha.com
Tue, 03 Mar 1998 21:38:58 +0000


The following diffs give me a sockified vncviewer.

-- socks patch --
*** sockets.c.orig	Thu Jan 15 10:50:33 1998
--- sockets.c	Thu Feb 26 14:35:42 1998
***************
*** 21,26 ****
--- 21,30 ----
   * sockets.c - functions to deal with sockets.
   */
  
+ #ifdef SOCKS
+ #include <socks.h>
+ #endif
+ 
  #include <unistd.h>
  #include <sys/socket.h>
  #include <errno.h>
*** vncviewer.c.orig	Thu Jan 15 10:50:33 1998
--- vncviewer.c	Thu Feb 26 14:38:07 1998
***************
*** 21,26 ****
--- 21,30 ----
   * vncviewer.c - VNC viewer for X.
   */
  
+ #ifdef SOCKS
+ #include <socks.h>
+ #endif
+ 
  #include <vncviewer.h>
  
  int
***************
*** 29,34 ****
--- 33,42 ----
      fd_set fds;
      struct timeval tv, *tvp;
      int msWait;
+ 
+ #ifdef SOCKS
+ 	SOCKSinit(argv[0]);
+ #endif  
  
      processArgs(argc, argv);
  
*** Imakefile.orig	Thu Jan 22 12:06:07 1998
--- Imakefile	Tue Mar  3 13:31:18 1998
***************
*** 8,13 ****
--- 8,19 ----
  SRCS = args.c listen.c rfbproto.c sockets.c vncviewer.c x.c
  OBJS = args.o listen.o rfbproto.o sockets.o vncviewer.o x.o
  INCLUDES = -I../include -I.
+ 
+ EXTRA_INCLUDES = -I/usr/local/include
+ EXTRA_DEFINES = -DSOCKS
+ EXTRA_LDOPTIONS = -L/usr/local/lib
+ LIBS = -lsocks5
+ 
  VNCAUTH_LIB = ../libvncauth/libvncauth.a
  
  all:: vncviewer
-- socks patch --

-- 
Karl Hakimian
hakimian "at" aha.com