patch-lgrind_c 771 B

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