]> git.sur5r.net Git - i3/i3status/commitdiff
Do not use pulseaudio for DragonFly BSD 298/head
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 14 Jul 2018 20:22:55 +0000 (20:22 +0000)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 14 Jul 2018 20:23:22 +0000 (20:23 +0000)
Makefile
src/print_volume.c

index c5427b9995b473780afc5ed077c095efdfa8d515..904b3d037f3e380f0a60beb891d85d91f7cab751 100644 (file)
--- 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 $<"
index c5cf55b6420b7c477122ee0abcf5939779c7b151..4c0fbdea67970277c1a75dc98868675af06cc930 100644 (file)
@@ -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