--- mapchan.c.orig 2008-09-12 01:47:59.000000000 +0500 +++ mapchan.c 2013-05-26 14:55:43.000000000 +0400 @@ -15,7 +15,12 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#include +#else #include +#endif #include #ifdef SYSLOG #include @@ -50,7 +55,7 @@ char *DEFAULT_LOGFILE = "mapchan.log"; #endif #ifndef CPATH - #define CPATH "/etc/mapchan" + #define CPATH "/usr/local/etc/mapchan" #endif #define BUFSIZE 32*1024