Changes for running on FreeBSD

This commit is contained in:
2025-03-29 14:38:43 -04:00
parent 9e4dae1fd4
commit 77157dcabe
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -13,7 +13,7 @@
#include <concord/discord.h>
#include <concord/log.h>
#include <postgresql/libpq-fe.h>
#include <libpq-fe.h>
#include "config.h"
#include "feed_info.h"

View File

@ -3,7 +3,7 @@
#include <concord/discord.h>
#include <postgresql/libpq-fe.h>
#include <libpq-fe.h>
typedef struct {
char *url;

2
main.c
View File

@ -17,7 +17,7 @@
#include <mrss.h>
#include <postgresql/libpq-fe.h>
#include <libpq-fe.h>
#include "config.h"
#include "feed_info.h"