diff options
| author | Lain Iwakura <lain@lainmail.xyz> | 2025-12-30 01:06:41 +0300 |
|---|---|---|
| committer | Lain Iwakura <lain@lainmail.xyz> | 2025-12-30 01:06:41 +0300 |
| commit | b7e9162901617bb3eec34b2ae4f41587ae71a738 (patch) | |
| tree | c5aa0c48a9c74bd4ecaa1365c9e3881494101f17 | |
| parent | fix(linux): fix building for linux (diff) | |
| download | ftp-master.tar.gz ftp-master.zip | |
| -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> |