12345678910111213141516171819202122232425 |
- $OpenBSD: patch-lgrind_c,v 1.2 2014/11/30 05:41:34 brad Exp $
- Don't use malloc.h header on OpenBSD.
- --- lgrind.c.orig Thu Nov 20 04:15:55 2014
- +++ lgrind.c Thu Nov 20 04:21:30 2014
- @@ -94,7 +94,6 @@ static char rcsid[] =
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- -#include <malloc.h>
- #include <time.h>
- /* One of the following two (depending on your system) */
- #include <unistd.h>
- @@ -516,7 +515,8 @@ int main(int argc, char **argv)
- printf("\\File{");
- putstr(fname);
- printf("}{%d}{%d}{%d}{%d:%02d}{%ld}\n", modtime.tm_year+1900, modtime.tm_mon+1,
- - modtime.tm_mday, modtime.tm_hour, modtime.tm_min, stbuf.st_size);
- + modtime.tm_mday, modtime.tm_hour, modtime.tm_min,
- + (long)stbuf.st_size);
- }
-
- code = FALSE;
|