Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/linux/gethostname.c5
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)