diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-24 21:46:06 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-24 21:46:06 +0000 |
commit | 59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc (patch) | |
tree | 6e79ccc7d7b4f8512a342099c2959344d50ee23b /newlib/libc/sys/linux/gethostname.c | |
parent | e773b7cf30838eede30a357f83a5a1e37f006fd0 (diff) | |
download | cygnal-59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc.tar.gz cygnal-59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc.tar.bz2 cygnal-59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc.zip |
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/gethostname.c: Change name to __gethostname and
add gethostname alias.
Diffstat (limited to 'newlib/libc/sys/linux/gethostname.c')
-rw-r--r-- | newlib/libc/sys/linux/gethostname.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <string.h> #include <unistd.h> #include <sys/utsname.h> +#include <machine/weakalias.h> 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) |