* src/hostname.c (sethostname) [!HAVE_SETHOSTNAME]: Remove declaration.

This commit is contained in:
Jim Meyering committed 2008-12-01 17:40:27 +01:00
1 parent 7ef56a26fd
commit 21eb87e6ea
1 file changed
+1 -5
+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. */