Do not use pulseaudio for DragonFly BSD

This commit is contained in:
Antonio Huete Jimenez 2018-07-14 20:22:55 +00:00
parent fc9da67e65
commit deca11c0a0
2 changed files with 6 additions and 1 deletions

View File

@ -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 $<"

View 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