]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
idmapped-mounts: Fix build error because of undefined reallocarray
authorYang Xu <xuyang2018.jy@fujitsu.com>
Wed, 1 Sep 2021 12:43:26 +0000 (20:43 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 5 Sep 2021 14:06:41 +0000 (22:06 +0800)
commit83f9f983d95a4d5d1736ea6dacb8cb5786888592
treeea77b31456c6c8c3e7e1b28d5843021f1097a23b
parent94252bca893a9dd026d333682a65eea16ea11a07
idmapped-mounts: Fix build error because of undefined reallocarray

On old glibc, reallocarray was not introduced, so this case compiles
failed.  We should use reallocarray if glibc supports and use
realloc if glibcs doesn't support reallocarray.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
configure.ac
src/idmapped-mounts/idmapped-mounts.c