mulk-0.6.0-large-file.patch 867 B

123456789101112131415161718192021222324252627282930313233
  1. Index: mulk-0.6.0/lib/defines.h
  2. ===================================================================
  3. --- mulk-0.6.0.orig/lib/defines.h
  4. +++ mulk-0.6.0/lib/defines.h
  5. @@ -41,6 +41,12 @@
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <time.h>
  9. +#ifdef HAVE_STDINT_H
  10. + #include <stdint.h>
  11. +#endif
  12. +#ifdef HAVE_INTTYPES_H
  13. + #include <inttypes.h>
  14. +#endif
  15. #include <curl/curl.h>
  16. #include <curl/multi.h>
  17. #include <uriparser/Uri.h>
  18. Index: mulk-0.6.0/lib/m_malloc.c
  19. ===================================================================
  20. --- mulk-0.6.0.orig/lib/m_malloc.c
  21. +++ mulk-0.6.0/lib/m_malloc.c
  22. @@ -34,10 +34,6 @@
  23. #ifdef MULKDEBUG
  24. -#ifdef HAVE_STDINT_H
  25. -#include <stdint.h> /* for uint32_t */
  26. -#endif
  27. -
  28. #define HASH_TABLE_SIZE 131072 /* 2^17, use always power of 2 */
  29. #define HASH_CHUNK_SIZE 2048
  30. #define INC_INDEX(i) i = ((i == HASH_TABLE_SIZE-1) ? 0 : i+1)