summaryrefslogtreecommitdiffstats
path: root/libc/inet/hostid.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-23 03:09:05 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-23 03:09:05 +0000
commit9fe852f17f0d07dca9f33ef862618a3bd3cb3df0 (patch)
tree7777f3d3d32d16ce878ec713f22384ee5d780895 /libc/inet/hostid.c
parenta6624c7cb7f47281f01834c00d31322dfe9b16f2 (diff)
downloaduClibc-alpine-9fe852f17f0d07dca9f33ef862618a3bd3cb3df0.tar.bz2
uClibc-alpine-9fe852f17f0d07dca9f33ef862618a3bd3cb3df0.tar.xz
Merge from trunk and bring in NPTL changes.
Diffstat (limited to 'libc/inet/hostid.c')
-rw-r--r--libc/inet/hostid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inet/hostid.c b/libc/inet/hostid.c
index 48dc55732..bd9f5b52b 100644
--- a/libc/inet/hostid.c
+++ b/libc/inet/hostid.c
@@ -30,6 +30,7 @@ libc_hidden_proto(gethostname)
#define HOSTID "/etc/hostid"
+#ifdef __USE_BSD
int sethostid(long int new_id)
{
int fd;
@@ -49,6 +50,7 @@ int sethostid(long int new_id)
#endif
return ret;
}
+#endif
long int gethostid(void)
{