svn commit: trunk/uClibc: include libc/sysdeps/linux/common

aldot at uclibc.org aldot at uclibc.org
Fri Feb 13 14:12:19 UTC 2009


Author: aldot
Date: 2009-02-13 14:12:19 +0000 (Fri, 13 Feb 2009)
New Revision: 25322

Log:
- we may need getdomainname internally


Modified:
   trunk/uClibc/include/unistd.h
   trunk/uClibc/libc/sysdeps/linux/common/getdomainname.c


Changeset:
Modified: trunk/uClibc/include/unistd.h
===================================================================
--- trunk/uClibc/include/unistd.h	2009-02-13 14:10:35 UTC (rev 25321)
+++ trunk/uClibc/include/unistd.h	2009-02-13 14:12:19 UTC (rev 25322)
@@ -909,11 +909,14 @@
 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;

Modified: trunk/uClibc/libc/sysdeps/linux/common/getdomainname.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/getdomainname.c	2009-02-13 14:10:35 UTC (rev 25321)
+++ trunk/uClibc/libc/sysdeps/linux/common/getdomainname.c	2009-02-13 14:12:19 UTC (rev 25322)
@@ -42,5 +42,7 @@
 #endif
   return 0;
 }
+#ifdef __UCLIBC_BSD_SPECIFIC__
 libc_hidden_def(getdomainname)
 #endif
+#endif



More information about the uClibc-cvs mailing list