Message ID | Pine.LNX.4.64.1403211822020.4557@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
I would recommend two things: 1. Give sgidefs.h clear comments that its mandate is to define only implementation-space macro names so that anyone considering modifying the file knows that must be kept name space clean so that it continues to be appropriate to include it in any installed header. (While you're there you could clean up the existing comments to match our style.) 2. Write: #include <sgidefs.h> /* Defines _MIPS_*, _ABI*. */ just so it's obvious what the #include is there for, since it has a name so far from obviously related to its purpose.
diff --git a/sysdeps/mips/bits/wordsize.h b/sysdeps/mips/bits/wordsize.h index 3f05c7d..2c29d81 100644 --- a/sysdeps/mips/bits/wordsize.h +++ b/sysdeps/mips/bits/wordsize.h @@ -15,6 +15,8 @@ License along with the GNU C Library. If not, see <http://www.gnu.org/licenses/>. */ +#include <sgidefs.h> + #define __WORDSIZE _MIPS_SZPTR #if _MIPS_SIM == _ABI64 # define __WORDSIZE_TIME64_COMPAT32 1 diff --git a/sysdeps/unix/sysv/linux/mips/getrlimit64.c b/sysdeps/unix/sysv/linux/mips/getrlimit64.c index f3b3331..b4a449b 100644 --- a/sysdeps/unix/sysv/linux/mips/getrlimit64.c +++ b/sysdeps/unix/sysv/linux/mips/getrlimit64.c @@ -15,6 +15,8 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <sgidefs.h> + #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 # include <shlib-compat.h> diff --git a/sysdeps/unix/sysv/linux/mips/setrlimit64.c b/sysdeps/unix/sysv/linux/mips/setrlimit64.c index 73d6095..26bf138 100644 --- a/sysdeps/unix/sysv/linux/mips/setrlimit64.c +++ b/sysdeps/unix/sysv/linux/mips/setrlimit64.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <sgidefs.h> #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32