summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--fetch.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3210093..afb841d 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,9 @@ LDFLAGS += -ledit
 endif
 ifneq ($(shell uname),Darwin)
 LDFLAGS += -lcurses
+ifeq ($(shell uname),Linux)
+LDFLAGS += -lbsd
+endif
 endif
 else
 CFLAGS += -DSMALL=1
diff --git a/fetch.c b/fetch.c
index a3aaec9..166cd11 100644
--- a/fetch.c
+++ b/fetch.c
@@ -49,7 +49,11 @@
 #include <netdb.h>
 #include <fcntl.h>
 #include <signal.h>
+#ifdef __linux__
+#include <bsd/vis.h>
+#else
 #include <vis.h>
+#endif
 #include <stdio.h>
 #include <stdarg.h>
 #include <errno.h>