
Oops, I didn't get the signal processing right (thats what I get from doing
the work on an ascii terminal). Here is the fixed patch:

*** 1.1	1993/04/28 06:05:03
--- Imakefile	1993/04/28 08:20:35
***************
*** 209,215 ****
  OBJS4=	xcmap.o
  
  PROGRAMS= xv bggen vdcomp xcmap
! 
  
  #if defined(HaveJpeg) || defined(HaveTiff)
  #  ifdef HaveJpeg
--- 209,218 ----
  OBJS4=	xcmap.o
  
  PROGRAMS= xv bggen vdcomp xcmap
! all::
! 	@echo ""
! 	@echo "  Did you remember to 'make depend' first?"
! 	@echo ""
  
  #if defined(HaveJpeg) || defined(HaveTiff)
  #  ifdef HaveJpeg
***************
*** 222,238 ****
       SUBDIRS = tiff
  #  endif
  #  define PassCDebugFlags
     MakeSubdirs($(SUBDIRS))
-    DependSubdirs($(DUBDIRS))
  #endif
  
  
  all::
- 	@echo ""
- 	@echo "  Did you remember to 'make depend' first?"
- 	@echo ""
- 
- all::
  	@echo "  building xv ..."
  	@echo ""
  
--- 225,236 ----
       SUBDIRS = tiff
  #  endif
  #  define PassCDebugFlags
+ #  define IHaveSubdirs
     MakeSubdirs($(SUBDIRS))
  #endif
  
  
  all::
  	@echo "  building xv ..."
  	@echo ""
  
***************
*** 259,267 ****
  
  
  SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4)
- DependTarget()
    
  AllTarget($(PROGRAMS))
  
  NormalProgramTarget(xv,$(OBJS1),$(DEPLIBS),$(LOCAL_LIBRARIES),)
  NormalProgramTarget(bggen,$(OBJS2),$(DEPLIBS),$(LOCAL_LIBRARIES),)
--- 257,269 ----
  
  
  SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4)
    
+ 
  AllTarget($(PROGRAMS))
+ DependTarget()
+ #ifdef IHaveSubdirs
+    DependSubdirs($(SUBDIRS))
+ #endif
  
  NormalProgramTarget(xv,$(OBJS1),$(DEPLIBS),$(LOCAL_LIBRARIES),)
  NormalProgramTarget(bggen,$(OBJS2),$(DEPLIBS),$(LOCAL_LIBRARIES),)
*** 1.1	1993/04/28 06:09:50
--- xcmap.c	1993/04/28 07:09:03
***************
*** 9,15 ****
--- 9,19 ----
  
  /* include files */
  #include <stdio.h>
+ #if defined(sun) && defined(SYSV)
+ #include <string.h>
+ #else
  #include <strings.h>
+ #endif
  #include <ctype.h>
  
  #include <X11/Xos.h>
*** 1.1	1993/04/28 08:33:13
--- xv.h	1993/04/28 17:47:38
***************
*** 284,292 ****
--- 284,298 ----
  
  
  /* signal macros */
+ #if defined(sun) && defined(SYSV)
+ #define HOLD_SIG         sighold(SIGALRM)
+ #define RELEASE_SIG      sigrelse(SIGALRM)
+ #define PAUSE_SIG        sigpause(SIGALRM)
+ #else
  #define HOLD_SIG         sigblock(sigmask(SIGALRM))
  #define RELEASE_SIG      sigblock(0)
  #define PAUSE_SIG        sigpause(0)
+ #endif
  
  
  /* default for most folks */
***************
*** 318,323 ****
--- 324,333 ----
  #define random  rand
  #define srandom srand
  #endif
+ #if defined(sun) && defined(SYSV)
+ #define random() rand()
+ #define srandom(x) srand(x)
+ #endif
  
  
  
*** 1.1	1993/04/28 06:17:41
--- tiff/Imakefile	1993/04/28 08:53:34
***************
*** 49,59 ****
--- 49,69 ----
  
  tif_compress.o: Imakefile
  
+ #if HasGcc
  g3states.h: mkg3states.c t4.h
          -${RM} g3states.h
+ 	${CC} -traditional -o mkg3states ${CFLAGS} mkg3states.c
+         ./mkg3states > g3states.h || rm g3states.h
+ #else
+ g3states.h: mkg3states.c t4.h
+         -${RM} g3states.h
          ${CC} -o mkg3states ${CFLAGS} mkg3states.c
          ./mkg3states > g3states.h || rm g3states.h
+ #endif
  
  depend:: g3states.h