Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcomposefs/lcfs-writer.c: fix build without reallocarray
If reallocarray is not available (e.g. on uclibc), use realloc to avoid the following build failure with uclibc: composefs/libcomposefs/lcfs-writer.c: In function 'lcfs_node_add_child': composefs/libcomposefs/lcfs-writer.c:886:24: error: implicit declaration of function 'reallocarray' [-Werror=implicit-function-declaration] 886 | new_children = reallocarray(parent->children, sizeof(*parent->children), | ^~~~~~~~~~~~ composefs/libcomposefs/lcfs-writer.c:886:22: error: assignment to 'struct lcfs_node_s **' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 886 | new_children = reallocarray(parent->children, sizeof(*parent->children), | ^ Fixes: - http://autobuild.buildroot.org/results/38470213c86091d14c59716cddcccd555f875705 Signed-off-by: Fabrice Fontaine <[email protected]>
- Loading branch information