Manually adding ftbfs-big-endian.patch from previous upload to git (patches are excluded because of upstreams gitignore file).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
cb2ad9dde3
commit
b57a1df84e
1 changed files with 15 additions and 0 deletions
15
debian/patches/debian/0001-ftbfs-big-endian.patch
vendored
Normal file
15
debian/patches/debian/0001-ftbfs-big-endian.patch
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
Author: Helge Deller <deller@kernel.org>
|
||||
Description: Fix the FTBFS on all big endian architectures (Closes: #1091379).
|
||||
|
||||
diff -Naurp frr.orig/tests/lib/test_frrscript.c frr/tests/lib/test_frrscript.c
|
||||
--- frr.orig/tests/lib/test_frrscript.c
|
||||
+++ frr/tests/lib/test_frrscript.c
|
||||
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
|
||||
n = 4;
|
||||
result = frrscript_call(fs, "fact", ("n", &n));
|
||||
assert(result == 0);
|
||||
- ansptr = frrscript_get_result(fs, "fact", "ans", lua_tointegerp);
|
||||
+ ansptr = frrscript_get_result(fs, "fact", "ans", lua_tolonglongp);
|
||||
assert(*ansptr == 24);
|
||||
|
||||
XFREE(MTYPE_SCRIPT_RES, ansptr);
|
Loading…
Add table
Reference in a new issue