svn commit: trunk/uClibc/libc/string

vapier at uclibc.org vapier at uclibc.org
Sat Sep 15 00:52:56 UTC 2007


Author: vapier
Date: 2007-09-14 17:52:56 -0700 (Fri, 14 Sep 2007)
New Revision: 19834

Log:
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:
   trunk/uClibc/libc/string/__xpg_strerror_r.c


Changeset:
Modified: trunk/uClibc/libc/string/__xpg_strerror_r.c
===================================================================
--- trunk/uClibc/libc/string/__xpg_strerror_r.c	2007-09-15 00:36:49 UTC (rev 19833)
+++ trunk/uClibc/libc/string/__xpg_strerror_r.c	2007-09-15 00:52:56 UTC (rev 19834)
@@ -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