From 59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 24 Jun 2002 21:46:06 +0000 Subject: 2002-06-24 Jeff Johnston * libc/sys/linux/gethostname.c: Change name to __gethostname and add gethostname alias. --- newlib/libc/sys/linux/gethostname.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'newlib/libc') 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) -- cgit v1.2.3