diff --git a/mbsetup/m_global.c b/mbsetup/m_global.c index 2c2a4999..96ecae78 100644 --- a/mbsetup/m_global.c +++ b/mbsetup/m_global.c @@ -1697,7 +1697,7 @@ int global_doc(FILE *fp, FILE *toc, int page) #elif defined(__linux__) add_webtable(wp, (char *)"Domain name", utsbuf.__domainname); fprintf(fp, " Domain name %s\n", utsbuf.__domainname); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) /* No domainname in struct utsname */ #else #error "Don't know utsbuf.domainname on this OS" diff --git a/mbtask/mbtask.c b/mbtask/mbtask.c index 8e9900de..7285204e 100644 --- a/mbtask/mbtask.c +++ b/mbtask/mbtask.c @@ -153,7 +153,7 @@ 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__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) sprintf(CFG.sysdomain, "%s", un.nodename); /* No domain in FreeBSD */ #else #error "Don't know un.domainname on this OS"