Standard procedure for glibc dependencies?

Is there some standard way of missing functions from glibc if I want to compile with musl? I want to use#define _GNU_SOURCE. In particular, reallocarray and functions like this.