diff --git a/mbtask/mbtask.c b/mbtask/mbtask.c index a2eee233..8e9900de 100644 --- a/mbtask/mbtask.c +++ b/mbtask/mbtask.c @@ -153,6 +153,8 @@ void load_maincfg(void) sprintf(CFG.sysdomain, "%s.%s", un.nodename, un.domainname); #elif defined(__linux__) sprintf(CFG.sysdomain, "%s.%s", un.nodename, un.__domainname); +#elif defined(__FreeBSD__) + sprintf(CFG.sysdomain, "%s", un.nodename); /* No domain in FreeBSD */ #else #error "Don't know un.domainname on this OS" #endif