[comp.sources.bugs] cdiff 1.1 patch #3

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (08/05/88)

System: cdiff version 1.1
Patch #: 3
Priority: MEDIUM
Subject: include <stat.h> => <sys/stat.h>
From: Samuel Lam

Description:
	The include of stat.h is wrong.

Fix:	From rn, say "| patch -p -N -d DIR", where DIR is your cdiff source
	directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
	If you don't have the patch program, apply the following by hand,
	or get patch (version 2.0, latest patchlevel).

	After patching:
		cc -o cdiff cdiff.c

	If patch indicates that patchlevel is the wrong version, you may need
	to apply one or more previous patches, or the patch may already
	have been applied.  See the patchlevel.h file to find out what has or
	has not been applied.  In any event, don't continue with the patch.

	If you are missing previous patches they can be obtained from me:

	Larry Wall
	lwall@jpl-devvax.jpl.nasa.gov

	If you send a mail message of the following form it will greatly speed
	processing:

	Subject: Command
	@SH mailpatch PATH cdiff 1.1 LIST
		   ^ note the c

	where PATH is a return path FROM ME TO YOU either in Internet notation,
	or in bang notation from some well-known host, and LIST is the number
	of one or more patches you need, separated by spaces, commas, and/or
	hyphens.  Saying 35- says everything from 35 to the end.

	You can also get patches via anonymous ftp from here (128.149.8.43).

Index: patchlevel.h
Prereq: 2
1c1
< #define PATCHLEVEL 2
---
> #define PATCHLEVEL 3

Index: cdiff.c
Prereq: 1.1.1.2
*** cdiff.c.old	Thu Aug  4 16:08:28 1988
--- cdiff.c	Thu Aug  4 16:08:30 1988
***************
*** 1,10 ****
! static char rcsid[] = "$Header: cdiff.c,v 1.1.1.2 87/06/04 11:21:43 lwall Exp $";
  
  /* cdiff - turns a regular diff into a new-style context diff
   *
   * Usage: cdiff file1 file2
   *
   * $Log:	cdiff.c,v $
   * Revision 1.1.1.2  87/06/04  11:21:43  lwall
   * Didn't do diffs with less than 3 lines of leading context.
   * 
--- 1,13 ----
! static char rcsid[] = "$Header: cdiff.c,v 1.1.1.3 88/08/04 16:08:18 lwall Exp $";
  
  /* cdiff - turns a regular diff into a new-style context diff
   *
   * Usage: cdiff file1 file2
   *
   * $Log:	cdiff.c,v $
+  * Revision 1.1.1.3  88/08/04  16:08:18  lwall
+  * patch3: include <stat.h> => <sys/stat.h>
+  * 
   * Revision 1.1.1.2  87/06/04  11:21:43  lwall
   * Didn't do diffs with less than 3 lines of leading context.
   * 
***************
*** 19,25 ****
  #include "patchlevel.h"
  #include <stdio.h>
  #include <sys/types.h>
! #include <stat.h>
  #include <ctype.h>
  
  char buf[512];
--- 22,28 ----
  #include "patchlevel.h"
  #include <stdio.h>
  #include <sys/types.h>
! #include <sys/stat.h>
  #include <ctype.h>
  
  char buf[512];