mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.
This commit is contained in:
1 parent
7ef56a26fd
commit
21eb87e6ea
1 file changed
+1
-5
+1
-5
@@ -32,15 +32,11 @@
|
||||
|
||||
#define AUTHORS proper_name ("Jim Meyering")
|
||||
|
||||
#if HAVE_SETHOSTNAME && !defined sethostname
|
||||
int sethostname ();
|
||||
#endif
|
||||
|
||||
#if !defined HAVE_SETHOSTNAME && defined HAVE_SYSINFO && \
|
||||
defined HAVE_SYS_SYSTEMINFO_H
|
||||
# include <sys/systeminfo.h>
|
||||
|
||||
int
|
||||
static int
|
||||
sethostname (char *name, size_t namelen)
|
||||
{
|
||||
/* Using sysinfo() is the SVR4 mechanism to set a hostname. */
|
||||
|
||||
Reference in new issue
Block a user