Skip to content

Commit e6a18c9

Browse files
committed
Fix for linux
1 parent 432e96b commit e6a18c9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ UNAME!= uname
1111
.ifdef ${UNAME} == Linux
1212
SRCS+= alsa.c
1313
LIBS+= alsa
14+
LDADD+= -lm
1415
.else
1516
SRCS+= sio.c
1617
LDADD+= -lsndio

spectrogram.c

-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ main(int argc, char **argv)
6666
struct panel *left, *right;
6767
double *ldata, *rdata;
6868

69-
int dflag = 0; /* daemonize */
7069
int fflag = 0; /* fullscreen */
7170
int pflag = 1; /* hide ptr */
7271

@@ -79,9 +78,6 @@ main(int argc, char **argv)
7978

8079
while ((ch = getopt(argc, argv, "dfpr:h")) != -1)
8180
switch (ch) {
82-
case 'd':
83-
dflag = 1;
84-
break;
8581
case 'f':
8682
fflag = 1;
8783
break;
@@ -101,9 +97,6 @@ main(int argc, char **argv)
10197

10298
signal(SIGINT, catch);
10399

104-
if (dflag)
105-
daemon(0, 0);
106-
107100
init_sio();
108101
maxwidth = max_samples_sio();
109102
maxheight = wa.height;

0 commit comments

Comments
 (0)