[hackers] Re: [slstatus][PATCH] Make volume component work on FreeBSD

From: Michael Buch <michaelbuch12_AT_gmail.com>
Date: Tue, 30 Mar 2021 10:35:11 +0100

Any updates on this?

Thanks,
Michael

Am Fr., 1. Jan. 2021 um 16:43 Uhr schrieb <michaelbuch12_AT_gmail.com>:

> From: Michael Buch <michaelbuch12_AT_gmail.com>
>
> - Edit compile instructions
> - Reuse OpenBSD sndio implementation
> ---
> components/volume.c | 2 +-
> config.def.h | 2 +-
> config.mk | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/components/volume.c b/components/volume.c
> index b6665da..32f7817 100644
> --- a/components/volume.c
> +++ b/components/volume.c
> _AT__AT_ -7,7 +7,7 @@
>
> #include "../util.h"
>
> -#if defined(__OpenBSD__)
> +#if defined(__OpenBSD__) | defined(__FreeBSD__)
> #include <sys/queue.h>
> #include <poll.h>
> #include <sndio.h>
> diff --git a/config.def.h b/config.def.h
> index 93a875a..f76b60c 100644
> --- a/config.def.h
> +++ b/config.def.h
> _AT__AT_ -59,7 +59,7 @@ static const char unknown_str[] = "n/a";
> * uptime system uptime NULL
> * username username of current user NULL
> * vol_perc OSS/ALSA volume in percent mixer file
> (/dev/mixer)
> - * NULL on OpenBSD
> + * NULL on
> OpenBSD/FreeBSD
> * wifi_perc WiFi signal in percent interface name
> (wlan0)
> * wifi_essid WiFi ESSID interface name
> (wlan0)
> */
> diff --git a/config.mk b/config.mk
> index 2516e6e..6cce683 100644
> --- a/config.mk
> +++ b/config.mk
> _AT__AT_ -15,7 +15,7 @@ CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
> CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
> LDFLAGS = -L$(X11LIB) -s
> # OpenBSD: add -lsndio
> -# FreeBSD: add -lkvm
> +# FreeBSD: add -lkvm -lsndio
> LDLIBS = -lX11
>
> # compiler and linker
> --
> 2.28.0
>
>
Received on Tue Mar 30 2021 - 11:35:11 CEST

This archive was generated by hypermail 2.3.0 : Tue Mar 30 2021 - 11:48:35 CEST