[PATCH] util: Fix pa_get_binary_name() on Debian/kFreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2014-08-04 at 14:50 +0200, Peter Meerwald wrote:
> Debian GNU/kFreeBSD uses a FreeBSD kernel and GLIBC,
> it #defines __FreeBSD_kernel__, but not __FreeBSD__ nor __linux__
> Debian GNU/kFreeBSD does have a /proc/self/exe
> 
> FreeBSD #defines __FreeBSD__ and __FreeBSD_kernel__
> 
> problem reporte here:
> http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-July/020998.html
> 
> Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
> ---
>  src/pulse/util.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pulse/util.c b/src/pulse/util.c
> index 50f90b8..42b160a 100644
> --- a/src/pulse/util.c
> +++ b/src/pulse/util.c
> @@ -193,7 +193,7 @@ char *pa_get_binary_name(char *s, size_t l) {
>      }
>  #endif
>  
> -#ifdef __linux__
> +#if defined(__linux__) || defined(__FreeBSD_kernel__)
>      {
>          char *rp;
>          /* This works on Linux only */

Looks good.

-- Arun



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux