[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] Update localedef's host headers



The following patch fixes build error of EGLIBC's localedef introduce by a recent merge from FSF GLIBC.

GLIBC now defines new macro __REDIRECT_NTH (no-throw analogue of __REDIRECT) in sys/cdefs.h header. If this macro is not present in host's sys/cdefs.h header, then we need to define it in localedef's copy of sys/cdefs.h.

Tested by building arm-none-linux-gnueabi GLIBC.

Checked in.

--
Maxim Kuvyrkov
CodeSourcery
maxim@xxxxxxxxxxxxxxxx
(650) 331-3385 x724
2010-06-29  Maxim Kuvyrkov  <maxim@xxxxxxxxxxxxxxxx>

	* include/sys/cdefs.h (__REDIRECT_NTH): Define if not present in host
	headers.
Index: include/sys/cdefs.h
===================================================================
--- include/sys/cdefs.h	(revision 10849)
+++ include/sys/cdefs.h	(working copy)
@@ -36,3 +36,13 @@
 # define __extern_always_inline extern __always_inline
 #endif
 #endif
+
+#if !defined(__REDIRECT_NTH) && defined(__GNUC__) && __GNUC__ >= 2
+# ifdef __cplusplus
+#  define __REDIRECT_NTH(name, proto, alias) \
+     name proto __THROW __asm__ (__ASMNAME (#alias))
+# else
+#  define __REDIRECT_NTH(name, proto, alias) \
+     name proto __asm__ (__ASMNAME (#alias)) __THROW
+# endif
+#endif