summary refs log tree commit diff
diff options
context:
space:
mode:
authorLain Iwakura <lain@lainmail.xyz>2025-12-30 01:06:41 +0300
committerLain Iwakura <lain@lainmail.xyz>2025-12-30 01:06:41 +0300
commitb7e9162901617bb3eec34b2ae4f41587ae71a738 (patch)
treec5aa0c48a9c74bd4ecaa1365c9e3881494101f17
parentfix(linux): fix building for linux (diff)
downloadftp-b7e9162901617bb3eec34b2ae4f41587ae71a738.tar.gz
ftp-b7e9162901617bb3eec34b2ae4f41587ae71a738.zip
fix(linux): fix building for linux HEAD master
-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>