Many other systems have asprintf, and all GNU systems do. I doubt there is any Debian variant whose libc lacks it. For the upstream package, the right approach to portability is to use an autoconf check for the existence of asprintf. Likewise for getline.