diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 3e4ad47a2..115d68eed 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -4,6 +4,11 @@ Mon Jun 24 21:17:02 2002 J"orn Rennecke * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it. * libc/machine/sh/Makefile.am: Regenerate. +2002-06-24 Jeff Johnston + + * libc/sys/linux/gethostname.c: Change name to __gethostname and + add gethostname alias. + 2002-06-24 Jeff Johnston * libc/include/math.h: Remove . diff --git a/newlib/libc/sys/linux/gethostname.c b/newlib/libc/sys/linux/gethostname.c index d5ebe58a2..ef526916f 100644 --- a/newlib/libc/sys/linux/gethostname.c +++ b/newlib/libc/sys/linux/gethostname.c @@ -4,9 +4,10 @@ #include #include #include +#include int -gethostname (char *name, size_t len) +__gethostname (char *name, size_t len) { struct utsname nodebuf; size_t nodelen; @@ -27,4 +28,4 @@ gethostname (char *name, size_t len) } return 0; } - +weak_alias(__gethostname, gethostname)