diff options
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | fetch.c | 4 |
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> |