util: Fix getting the binary name for GNU/Hurd

This fixes the get-binary-name-test test

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/671>
This commit is contained in:
Laurent Bigonville 2021-12-16 16:26:11 +01:00
parent ea20555378
commit 6e45a64478

View file

@ -228,7 +228,7 @@ char *pa_get_binary_name(char *s, size_t l) {
}
#endif
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && !defined(__FreeBSD__))
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && !defined(__FreeBSD__)) || defined(__GNU__)
{
char *rp;
/* This works on Linux and Debian/kFreeBSD */