Fixed compiling on NetBSD
This commit is contained in:
parent
37fb1327b3
commit
b75e36a3d6
@ -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"
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user