in kplot there is a runtime check for reallocarray which actually wont
work in cross compile mode, luckily it does check for HAVE_REALLOCARRAY
before usng the results of runtime check. So here add a configure time
check for presense of reallocarray
Fixes
TOPDIR/build/tmp/work/core2-32-yoe-linux/libegt/0.8-r0/recipe-sysroot/usr/include/stdlib.h:559:14: error: exception specification in declaration does not match previous declaration
extern void reallocarray (void ptr, size_t __nmemb, size_t size)
^
../external/kplot/compat.h:24:7: note: previous declaration is here
void reallocarray(void optr, size_t nmemb, size_t size);
^
kplot was removed from EGT as part of the move to plplot. So, this pull request is no longer valid. If you must maintain an older version of EGT with this patch, it should unfortunately be handled in the build system.
in kplot there is a runtime check for reallocarray which actually wont work in cross compile mode, luckily it does check for HAVE_REALLOCARRAY before usng the results of runtime check. So here add a configure time check for presense of reallocarray
Fixes
TOPDIR/build/tmp/work/core2-32-yoe-linux/libegt/0.8-r0/recipe-sysroot/usr/include/stdlib.h:559:14: error: exception specification in declaration does not match previous declaration extern void reallocarray (void ptr, size_t __nmemb, size_t size) ^ ../external/kplot/compat.h:24:7: note: previous declaration is here void reallocarray(void optr, size_t nmemb, size_t size); ^
Upstream-Status: Pending Signed-off-by: Khem Raj raj.khem@gmail.com