summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 14:12:19 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 14:12:19 +0000
commit8fc970ab0a8bb0526592a1db6e46182a04a0afd3 (patch)
tree438591c1e641bbaa0cc5e57869fd62337514b2bc
parent4348f28daaaa61327fd54c8296928f9cf7e79e9a (diff)
- we may need getdomainname internally
-rw-r--r--include/unistd.h3
-rw-r--r--libc/sysdeps/linux/common/getdomainname.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index eb0d94595..e6154d24c 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -909,11 +909,14 @@ extern int sethostname (__const char *__name, size_t __len)
extern int sethostid (long int __id) __THROW __wur;
#if defined __UCLIBC_BSD_SPECIFIC__
+# if defined UCLIBC_INTERNAL
+/* separate preprocessor test for unifdef */
/* Get and set the NIS (aka YP) domain name, if any.
Called just like `gethostname' and `sethostname'.
The NIS domain name is usually the empty string when not using NIS. */
extern int getdomainname (char *__name, size_t __len)
__THROW __nonnull ((1)) __wur;
+# endif
libc_hidden_proto(getdomainname)
extern int setdomainname (__const char *__name, size_t __len)
__THROW __nonnull ((1)) __wur;
diff --git a/libc/sysdeps/linux/common/getdomainname.c b/libc/sysdeps/linux/common/getdomainname.c
index 20b09610a..5cf8baa6b 100644
--- a/libc/sysdeps/linux/common/getdomainname.c
+++ b/libc/sysdeps/linux/common/getdomainname.c
@@ -42,5 +42,7 @@ int getdomainname(char *name, size_t len)
#endif
return 0;
}
+#ifdef __UCLIBC_BSD_SPECIFIC__
libc_hidden_def(getdomainname)
#endif
+#endif