1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-17 13:01:12 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Joseph Myers 1ca2d03e3e Fix -Wundef warnings for _ABI* on MIPS.
This patch fixes -Wundef warnings related to the _ABI* macros on MIPS.
GCC predefines only the _ABI* macro related to the ABI actually in
use, meaning that a conditional such as "#if _MIPS_SIM == _ABI64" is
true only for the ABI in question (all the macros are nonzero), but
produces a -Wundef warning for the other ABIs.  The normal approach to
using these macros is to include <sgidefs.h>, which ensures that all
three _ABI* macros are defined rather than just one; this patch does
so in the places that caused warnings (the bulk of the warnings
arising from <bits/wordsize.h>).  Tested that the warnings are fixed.

	* sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
	* sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
2014-03-21 18:21:13 +00:00
..
2013-06-05 20:44:03 +00:00
2014-01-04 08:34:01 -05:00
2014-01-04 08:34:01 -05:00
2013-08-27 10:34:16 -07:00
2012-10-04 16:31:43 -07:00