From 77157dcabe510ec9d841015b3d3f3976517f693b Mon Sep 17 00:00:00 2001 From: Will Brown Date: Sat, 29 Mar 2025 14:38:43 -0400 Subject: [PATCH] Changes for running on FreeBSD --- Makefile | 6 +++--- feed_info.c | 2 +- feed_info.h | 2 +- main.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7074a0e..09b9b0a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CFLAGS = -Wall -Wextra -std=gnu11 -O2 -LDFLAGS = -lpthread -lcurl -lmrss -lpq +CFLAGS = -I/usr/local/include -Ipostgresql -Wall -Wextra -std=gnu11 -O2 +LDFLAGS = -L/usr/local/lib -lpthread -lcurl -lmrss -lpq SRC = $(wildcard *.c) OBJ = $(SRC:.c=.o) @@ -8,4 +8,4 @@ zblock: $(OBJ) /usr/local/lib/libdiscord.a $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) .PHONY: clean -clean: rm -f $(OBJ) linuxbot +clean: rm -f $(OBJ) zblock diff --git a/feed_info.c b/feed_info.c index c9d13e4..808e316 100644 --- a/feed_info.c +++ b/feed_info.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include "config.h" #include "feed_info.h" diff --git a/feed_info.h b/feed_info.h index 091affb..dcae3bf 100644 --- a/feed_info.h +++ b/feed_info.h @@ -3,7 +3,7 @@ #include -#include +#include typedef struct { char *url; diff --git a/main.c b/main.c index 7194fa4..b3ce7c7 100644 --- a/main.c +++ b/main.c @@ -17,7 +17,7 @@ #include -#include +#include #include "config.h" #include "feed_info.h"