mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-20 12:23:06 +03:00
[HAVE_SETHOSTNAME && !defined sethostname]:
Declare sethostname, since no Solaris header does it.
This commit is contained in:
1 parent
6de63bb739
commit
ba894b1ea1
1 file changed
+4
@@ -30,6 +30,10 @@
|
||||
|
||||
#define AUTHORS "Jim Meyering"
|
||||
|
||||
#if HAVE_SETHOSTNAME && !defined sethostname
|
||||
int sethostname ();
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
|
||||
defined (HAVE_SYS_SYSTEMINFO_H) && defined(HAVE_LIMITS_H)
|
||||
# include <sys/systeminfo.h>
|
||||
|
||||
Reference in new issue
Block a user