user/elogind: error: static declaration of ‘reallocarray’ follows non-static declaration
Found on 32-bit ppc.
FAILED: src/shared/libelogind-shared-243.7.a.p/nsflags.c.o
gcc -Isrc/shared/libelogind-shared-243.7.a.p -Isrc/shared -I../src/shared -Isrc/basic -I../src/basic -I../src/boot -Isrc/systemd -I../src/systemd -Isrc/journal -I../src/journal -Isrc/login -I../src/login -Isrc/core -I../src/core -I../src/libelogind/sd-bus -I../src/libelog
ind/sd-device -I../src/libelogind/sd-event -I../src/libelogind/sd-hwdb -I../src/libelogind/sd-id128 -Isrc/sleep -I../src/sleep -Isrc/update-utmp -I../src/update-utmp -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -g -Wextra -Werr
or=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatibl
e-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-exter
ns -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-st
rong --param=ssp-buffer-size=4 -Werror=shadow -include config.h -O2 -ggdb -mcpu=G3 -fno-omit-frame-pointer -mfpu=dp_full -g -g -Os -fomit-frame-pointer -fPIC -pthread -fvisibility=default -MD -MQ src/shared/libelogind-shared-243.7.a.p/nsflags.c.o -MF src/shared/libelogind
-shared-243.7.a.p/nsflags.c.o.d -o src/shared/libelogind-shared-243.7.a.p/nsflags.c.o -c ../src/shared/nsflags.c
In file included from ../src/shared/nsflags.c:5:
../src/basic/alloc-util.h:100:35: error: static declaration of ‘reallocarray’ follows non-static declaration
_alloc_(2, 3) static inline void *reallocarray(void *p, size_t need, size_t size) {
^~~~~~~~~~~~
In file included from ../src/basic/alloc-util.h:6,
from ../src/shared/nsflags.c:5:
/usr/include/stdlib.h:154:7: note: previous declaration of ‘reallocarray’ was here
void *reallocarray (void *, size_t, size_t);
^~~~~~~~~~~~