svn commit: branches/uClibc_0_9_29/libc/string

vapier at uclibc.org vapier at uclibc.org
Sat Jan 5 17:33:38 UTC 2008


Author: vapier
Date: 2008-01-05 09:33:38 -0800 (Sat, 05 Jan 2008)
New Revision: 20759

Log:
Merge r19834 by vapier from trunk:
add strerror_r symbol alias as some autotool based packages simply use AC_CHECK_LIB() to see if a function exists rather than checking the headers


Modified:
   branches/uClibc_0_9_29/libc/string/__xpg_strerror_r.c


Changeset:
Modified: branches/uClibc_0_9_29/libc/string/__xpg_strerror_r.c
===================================================================
--- branches/uClibc_0_9_29/libc/string/__xpg_strerror_r.c	2008-01-05 17:33:13 UTC (rev 20758)
+++ branches/uClibc_0_9_29/libc/string/__xpg_strerror_r.c	2008-01-05 17:33:38 UTC (rev 20759)
@@ -5,11 +5,16 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
+/* Make sure we get proper strerror_r() prototype */
+#define strerror_r __moo
+
 #include <features.h>
 #include <errno.h>
 #include <string.h>
 #include "_syserrmsg.h"
 
+#undef strerror_r
+
 libc_hidden_proto(__xpg_strerror_r)
 libc_hidden_proto(memcpy)
 libc_hidden_proto(strlen)
@@ -271,3 +276,4 @@
 
 #endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
 libc_hidden_def(__xpg_strerror_r)
+weak_alias(__xpg_strerror_r, strerror_r)




More information about the uClibc-cvs mailing list