summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 15:35:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 15:35:26 +0000
commit0b5d467c1321a9bf96da027242e6e191d102d72a (patch)
tree82187d8f223ad7e4d0bacc6204565db83acb3b75 /libc/sysdeps/linux/common
parent0881a12999f9598f422b3149cbd9d1b1a2be8e92 (diff)
- repair my r25322 that ment to deal with getdomainname()'s visibility
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/getdomainname.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/getdomainname.c b/libc/sysdeps/linux/common/getdomainname.c
index 5cf8baa6b..cdea2172a 100644
--- a/libc/sysdeps/linux/common/getdomainname.c
+++ b/libc/sysdeps/linux/common/getdomainname.c
@@ -16,7 +16,11 @@
/* Experimentally off - libc_hidden_proto(strcpy) */
/* libc_hidden_proto(uname) */
-int getdomainname(char *name, size_t len)
+int
+#ifndef __UCLIBC_BSD_SPECIFIC__
+attribute_hidden
+#endif
+getdomainname(char *name, size_t len)
{
struct utsname uts;
@@ -42,7 +46,7 @@ int getdomainname(char *name, size_t len)
#endif
return 0;
}
-#ifdef __UCLIBC_BSD_SPECIFIC__
+# ifdef __UCLIBC_BSD_SPECIFIC__
libc_hidden_def(getdomainname)
-#endif
+# endif
#endif