1
0
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:
Jim Meyering
2008-12-01 07:27:55 +01:00
parent 7ef56a26fd
commit 21eb87e6ea
+1 -5
View File
@@ -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. */