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