Simon Josefsson <[email protected]> writes: >> * AIX 5.1, OSF/1 5.1, Solaris 8 >> >> CC hostname.o >> "hostname.c", line 93.25: 1506-045 (S) Undeclared identifier sethostname. >> "hostname.c", line 161.31: 1506-045 (S) Undeclared identifier sethostname. >> make: 1254-004 The error code from the last command is 1. >> >> The function sethostname is not portable, see >> gnulib/doc/glibc-functions/sethostname.texi > > Either hostname should return an error on these platforms, or it > shouldn't be built at all. I'm mildly in favor of the first option > (there are other uses of hostname than setting the hostname). Thoughts? > I'll implement the former unless if there are no objections.
I don't have time to fix this, so I documented the problem in TODO: Make src/hostname.c handle missing 'sethostname' functions on platforms that doesn't have them (it could just print an error message). /Simon
