Fixed compiling on NetBSD

This commit is contained in:
Michiel Broek 2005-02-05 22:47:14 +00:00
parent 37fb1327b3
commit b75e36a3d6
2 changed files with 2 additions and 2 deletions

View File

@ -1697,7 +1697,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
#elif defined(__linux__) #elif defined(__linux__)
add_webtable(wp, (char *)"Domain name", utsbuf.__domainname); add_webtable(wp, (char *)"Domain name", utsbuf.__domainname);
fprintf(fp, " Domain name %s\n", utsbuf.__domainname); fprintf(fp, " Domain name %s\n", utsbuf.__domainname);
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__) || defined(__NetBSD__)
/* No domainname in struct utsname */ /* No domainname in struct utsname */
#else #else
#error "Don't know utsbuf.domainname on this OS" #error "Don't know utsbuf.domainname on this OS"

View File

@ -153,7 +153,7 @@ void load_maincfg(void)
sprintf(CFG.sysdomain, "%s.%s", un.nodename, un.domainname); sprintf(CFG.sysdomain, "%s.%s", un.nodename, un.domainname);
#elif defined(__linux__) #elif defined(__linux__)
sprintf(CFG.sysdomain, "%s.%s", un.nodename, un.__domainname); 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 */ sprintf(CFG.sysdomain, "%s", un.nodename); /* No domain in FreeBSD */
#else #else
#error "Don't know un.domainname on this OS" #error "Don't know un.domainname on this OS"