Root/listener/patches/200-fix-the-config-file-to-etc.patch

1diff --git a/Makefile b/Makefile
2index 4b25e62..48f4caa 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -14,7 +14,7 @@ setlistener: $(OBJSsl)
6     $(CC) $(CFLAGS) $(OBJSsl) $(LDFLAGS) -ldl -lncurses -o setlistener
7 
8 listener: $(OBJSli)
9- $(CC) $(CFLAGS) $(OBJSli) $(LDFLAGS) -ldl -lm -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
10+ $(CC) $(CFLAGS) $(OBJSli) $(LDFLAGS) -ldl -lm -lsndfile -o listener
11 
12 listenersoundpipe: $(OBJSsp)
13     $(CC) $(CFLAGS) $(OBJSsp) -o listenersoundpipe
14diff --git a/listener.h b/listener.h
15index 5cdf088..88b93ee 100644
16--- a/listener.h
17+++ b/listener.h
18@@ -1,7 +1,9 @@
19 #define SAMPLE_RATE 44100
20 #define WAV_PATH "listen_wav_out"
21 #define DSP_PATH "/dev/dsp"
22-#define CONFIGFILE "/usr/local/etc/listener.conf"
23+#ifndef CONFIGFILE
24+ #define CONFIGFILE "/usr/local/etc/listener.conf"
25+#endif
26 #define MAX_N_LIBRARIES 16
27 
28 
29

Archive Download this file



interactive