From: Antonio Huete Jimenez Date: Sat, 14 Jul 2018 20:22:55 +0000 (+0000) Subject: Do not use pulseaudio for DragonFly BSD X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3status;a=commitdiff_plain;h=deca11c0a0f619c3df8c1bb240935b4e38867260 Do not use pulseaudio for DragonFly BSD --- diff --git a/Makefile b/Makefile index c5427b9..904b3d0 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,11 @@ OBJS:=$(filter-out src/pulse.o, $(OBJS)) LIBS:=$(filter-out -lpulse, $(LIBS)) endif +ifeq ($(OS),DragonFly) +OBJS:=$(filter-out src/pulse.o, $(OBJS)) +LIBS:=$(filter-out -lpulse, $(LIBS)) -lpthread +endif + src/%.o: src/%.c include/i3status.h $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< @echo " CC $<" diff --git a/src/print_volume.c b/src/print_volume.c index c5cf55b..4c0fbde 100644 --- a/src/print_volume.c +++ b/src/print_volume.c @@ -63,7 +63,7 @@ void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char * free(instance); } -#ifndef __OpenBSD__ +#if !defined(__DragonFly__) && !defined(__OpenBSD__) /* Try PulseAudio first */ /* If the device name has the format "pulse[:N]" where N is the