sleuthkit.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Index: Makefile
  2. --- Makefile.orig 2004-04-20 21:57:10.000000000 +0200
  3. +++ Makefile 2004-06-18 10:14:40.253031000 +0200
  4. @@ -14,11 +14,11 @@
  5. compile-static: no-perl-static mactime sorter file test
  6. no-perl:
  7. - cd src/misc; make "CC=$(CC)" MAKELEVEL=
  8. - cd src/hashtools; make "CC=$(CC)" MAKELEVEL=
  9. - cd src/fstools; make "CC=$(CC)" MAKELEVEL=
  10. - cd src/mmtools; make "CC=$(CC)" MAKELEVEL=
  11. - cd src/srchtools; make "CC=$(CC)" MAKELEVEL=
  12. + cd src/misc; make -e "CC=$(CC)" OPT=-O MAKELEVEL=
  13. + cd src/hashtools; make -e "CC=$(CC)" OPT=-O MAKELEVEL=
  14. + cd src/fstools; make -e "CC=$(CC)" OPT=-O MAKELEVEL=
  15. + cd src/mmtools; make -e "CC=$(CC)" OPT=-O MAKELEVEL=
  16. + cd src/srchtools; make -e "CC=$(CC)" OPT=-O MAKELEVEL=
  17. no-perl-static:
  18. cd src/misc; make "CC=$(CC)" OPT=-static MAKELEVEL=
  19. Index: src/fstools/ntfs.c
  20. --- src/fstools/ntfs.c.orig 2004-05-08 21:48:09.000000000 +0200
  21. +++ src/fstools/ntfs.c 2004-06-18 10:25:58.526356000 +0200
  22. @@ -752,7 +752,7 @@
  23. ((int)attr <= ((int)attrseq + len)) &&
  24. (getu32(fs, attr->len) > 0 &&
  25. (getu32(fs, attr->type) != 0xffffffff));
  26. - (int)attr += getu32(fs, attr->len))
  27. + *((int *)attr) += getu32(fs, attr->len))
  28. {
  29. /* Get the type of this attribute */
  30. u_int32_t type = getu32(fs, attr->type);
  31. Index: src/mmtools/mm_tools.h
  32. --- src/mmtools/mm_tools.h.orig 2004-07-30 07:22:58 +0200
  33. +++ src/mmtools/mm_tools.h 2004-08-02 10:42:54 +0200
  34. @@ -88,6 +88,14 @@
  35. #endif
  36. #endif /* FREEBSD */
  37. +#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4)
  38. +# ifndef PRIx64
  39. +# define PRIx64 "llx" /* uint64_t */
  40. +# endif
  41. +# ifndef PRIu64
  42. +# define PRIu64 "llu" /* uint64_t */
  43. +# endif
  44. +#endif /* FREEBSD */
  45. /*
  46. * BSD/OS can handle filesystems > 2GB.
  47. @@ -107,6 +115,16 @@
  48. #include <inttypes.h>
  49. #endif
  50. +/*
  51. + * NetBSD
  52. + *
  53. + */
  54. +#if defined(NETBSD16)
  55. +#define SUPPORTED
  56. +#define STRTOUL strtoul
  57. +#endif /* NETBSD */
  58. +
  59. +
  60. #if defined(DARWIN)
  61. #define SUPPORTED
  62. #define STRTOUL strtoul