diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-02-13 15:35:26 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-02-13 15:35:26 +0000 |
commit | 0b5d467c1321a9bf96da027242e6e191d102d72a (patch) | |
tree | 82187d8f223ad7e4d0bacc6204565db83acb3b75 /include/unistd.h | |
parent | 0881a12999f9598f422b3149cbd9d1b1a2be8e92 (diff) |
- repair my r25322 that ment to deal with getdomainname()'s visibility
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/unistd.h b/include/unistd.h index e6154d24c..30621634a 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -908,16 +908,15 @@ extern int sethostname (__const char *__name, size_t __len) This call is restricted to the super-user. */ extern int sethostid (long int __id) __THROW __wur; -#if defined __UCLIBC_BSD_SPECIFIC__ -# if defined UCLIBC_INTERNAL -/* separate preprocessor test for unifdef */ +#if defined __UCLIBC_BSD_SPECIFIC__ || defined UCLIBC_INTERNAL /* 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) +#endif +#if defined __UCLIBC_BSD_SPECIFIC__ extern int setdomainname (__const char *__name, size_t __len) __THROW __nonnull ((1)) __wur; #endif |