From 432c71bc4a86946ff8ff0ffac4dbab41d23e7d67 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 17 Mar 2017 19:50:37 +1000 Subject: [PATCH] FreeBSD fixes --- lua/Makefile | 2 +- www.c | 3 +++ www_msgs.c | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/Makefile b/lua/Makefile index d71c75c..89cf618 100644 --- a/lua/Makefile +++ b/lua/Makefile @@ -102,7 +102,7 @@ c89: freebsd: - $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" + $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX -I/usr/local/include" SYSLIBS="-L/usr/local/lib -Wl,-E -lreadline" CC=cc generic: $(ALL) diff --git a/www.c b/www.c index 8c78b87..2592485 100644 --- a/www.c +++ b/www.c @@ -8,6 +8,9 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#endif #include "bbs.h" #define GET 1 diff --git a/www_msgs.c b/www_msgs.c index fb36f01..ab60317 100644 --- a/www_msgs.c +++ b/www_msgs.c @@ -4,6 +4,9 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#endif #include "bbs.h" #include "jamlib/jam.h"