Title: [1979] trunk/uClibc/libc/string/__xpg_strerror_r.c:
Upstream r19834 | vapier | 2007-09-15 02:52:56 +0200 (Sat, 15 Sep 2007)
| 1 line
- Revision
- 1979
- Author
- bernds
- Date
- 2007-11-22 18:45:54 -0600 (Thu, 22 Nov 2007)
Log Message
Upstream r19834 | vapier | 2007-09-15 02:52:56 +0200 (Sat, 15 Sep 2007) | 1 line
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
Diffstat
__xpg_strerror_r.c | 6 ++++++
1 files changed, 6 insertions(+)
Modified Paths
Diff
Modified: trunk/uClibc/libc/string/__xpg_strerror_r.c (1978 => 1979)
--- trunk/uClibc/libc/string/__xpg_strerror_r.c 2007-11-23 00:45:07 UTC (rev 1978)
+++ trunk/uClibc/libc/string/__xpg_strerror_r.c 2007-11-23 00:45:54 UTC (rev 1979)
@@ -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)
_______________________________________________
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits