diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2023-04-17 17:01:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 17:01:22 +0200 |
commit | 568f03bf994b819d007eb01a78688cb6e01b56d4 (patch) | |
tree | 226c8bacb2efce0e81bfeb011644944a60f93a67 /libnetdata | |
parent | 3da6395ceae6700ef1e56d1af20b39cfa723f8b2 (diff) |
fix judyltablesgen crosscompile (#14349)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/libjudy/src/JudyL/JudyLTablesGen.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libnetdata/libjudy/src/JudyL/JudyLTablesGen.c b/libnetdata/libjudy/src/JudyL/JudyLTablesGen.c index cb8b13ff79..ce4b371531 100644 --- a/libnetdata/libjudy/src/JudyL/JudyLTablesGen.c +++ b/libnetdata/libjudy/src/JudyL/JudyLTablesGen.c @@ -15,7 +15,7 @@ // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // _________________ -// @(#) $Revision: 4.37 $ $Source: /judy/src/JudyCommon/JudyTables.c $ +// @(#) $Revision: 4.37.1-netdata $ $Source: JudyTables.c $ #ifndef JU_WIN #include <unistd.h> // unavailable on win_*. @@ -30,7 +30,12 @@ #define TERMINATOR 999 // terminator for Alloc tables -#define BPW sizeof(Word_t) // define bytes per word +// define bytes per word +#ifdef JU_64BIT +#define BPW 8UL +#else +#define BPW 4UL +#endif #ifdef JUDY1 #include "Judy1.h" @@ -199,7 +204,7 @@ FUNCTION int main() } - fprintf(fd,"// @(#) From generation tool: $Revision: 4.37 $ $Source: /judy/src/JudyCommon/JudyTables.c $\n"); + fprintf(fd,"// @(#) From generation tool: $Revision: 4.37.1-netdata $ $Source: JudyTables.c $\n"); fprintf(fd,"//\n\n"); |