Fixed compile on FreeBSD

This commit is contained in:
Michiel Broek 2005-02-05 21:59:53 +00:00
parent 9f38169b56
commit f1dd8cd9ca

View File

@ -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