From 094cb76c21dc2c3979ea7dd3188e18235904f485 Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 1 Sep 2024 01:18:47 +0000 Subject: [PATCH] freebsd support git-svn-id: file:///raid/svn-personal/irc-archiver/trunk@23 f310dea9-ad02-7e44-859a-30a050007fc7 --- Bot/bot.c | 4 ++++ Platform/freebsd.mk | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 Platform/freebsd.mk diff --git a/Bot/bot.c b/Bot/bot.c index f878b13..296f569 100644 --- a/Bot/bot.c +++ b/Bot/bot.c @@ -23,6 +23,10 @@ #include #include +#ifdef __FreeBSD__ +#include +#endif + #define IRCARC_VERSION "1.01" const char* ircarc_version = IRCARC_VERSION; diff --git a/Platform/freebsd.mk b/Platform/freebsd.mk new file mode 100644 index 0000000..22c404a --- /dev/null +++ b/Platform/freebsd.mk @@ -0,0 +1,8 @@ +# $Id: generic.mk 9 2024-08-30 03:51:01Z nishi $ + +CC = cc +AR = ar +CFLAGS = -std=c99 -I /usr/local/include +LDFLAGS = -L /usr/local/lib +LIBS = -lsqlite3 +EXEC =