@cryptotaxi247 / netdata-1 / commits / 568f03bf9

fix judyltablesgen crosscompile (#14349)

Timotej S committed Apr 17, 2023 at 17:01 UTC 568f03bf994b819d007eb01a78688cb6e01b56d4
1 file changed +8 -3
libnetdata/libjudy/src/JudyL/JudyLTablesGen.c
+8 -3
@@ -15,7 +15,7 @@
15 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // _________________
17
18 -// @(#) $Revision: 4.37 $ $Source: /judy/src/JudyCommon/JudyTables.c $
18 +// @(#) $Revision: 4.37.1-netdata $ $Source: JudyTables.c $
19
20 #ifndef JU_WIN
21 #include <unistd.h> // unavailable on win_*.
@@ -30,7 +30,12 @@
30
31 #define TERMINATOR 999 // terminator for Alloc tables
32
33 -#define BPW sizeof(Word_t) // define bytes per word
33 +// define bytes per word
34 +#ifdef JU_64BIT
35 +#define BPW 8UL
36 +#else
37 +#define BPW 4UL
38 +#endif
39
40 #ifdef JUDY1
41 #include "Judy1.h"
@@ -199,7 +204,7 @@ FUNCTION int main()
204 }
205
206
202 - fprintf(fd,"// @(#) From generation tool: $Revision: 4.37 $ $Source: /judy/src/JudyCommon/JudyTables.c $\n");
207 + fprintf(fd,"// @(#) From generation tool: $Revision: 4.37.1-netdata $ $Source: JudyTables.c $\n");
208 fprintf(fd,"//\n\n");
209
210