mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-06-14 21:47:09 +02:00
* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.
This commit is contained in:
+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