From b7e9162901617bb3eec34b2ae4f41587ae71a738 Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Tue, 30 Dec 2025 01:06:41 +0300 Subject: fix(linux): fix building for linux --- Makefile | 3 +++ fetch.c | 4 ++++ 2 files changed, 7 insertions(+) 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 #include #include +#ifdef __linux__ +#include +#else #include +#endif #include #include #include -- cgit 1.4.1