diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2004-11-27 20:01:03 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2004-11-27 20:01:03 +0000 |
| commit | f0b94226b11df6a80706d8ebe5dd04dc2e6b4aa3 (patch) | |
| tree | 98b1e744e1833d6fbb37b371b375ff56228e0526 | |
| parent | 232e0cb8d69e482329be05bda516a6286bccf973 (diff) | |
| download | glibc-f0b94226b11df6a80706d8ebe5dd04dc2e6b4aa3.tar.xz glibc-f0b94226b11df6a80706d8ebe5dd04dc2e6b4aa3.zip | |
Include sgidefs.h only if NO_SGIDEFS_H isn't defined. Don't include
sgidefs.h twice.
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/pread.c | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/pread64.c | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/pwrite.c | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/pwrite64.c | 2 |
4 files changed, 8 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/pread.c b/sysdeps/unix/sysv/linux/mips/pread.c index d0947bea42..eff7d473d0 100644 --- a/sysdeps/unix/sysv/linux/mips/pread.c +++ b/sysdeps/unix/sysv/linux/mips/pread.c @@ -20,7 +20,9 @@ #include <assert.h> #include <errno.h> +#ifndef NO_SGIDEFS_H #include <sgidefs.h> +#endif #include <unistd.h> #include <endian.h> @@ -29,9 +31,6 @@ #include <bp-checks.h> #include <kernel-features.h> -#ifndef NO_SGIDEFS_H -#include <sgidefs.h> -#endif #ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */ # ifdef __NR_pread diff --git a/sysdeps/unix/sysv/linux/mips/pread64.c b/sysdeps/unix/sysv/linux/mips/pread64.c index e8a45da5b1..d8763acabb 100644 --- a/sysdeps/unix/sysv/linux/mips/pread64.c +++ b/sysdeps/unix/sysv/linux/mips/pread64.c @@ -19,7 +19,9 @@ 02111-1307 USA. */ #include <errno.h> +#ifndef NO_SGIDEFS_H #include <sgidefs.h> +#endif #include <unistd.h> #include <endian.h> @@ -28,9 +30,6 @@ #include <bp-checks.h> #include <kernel-features.h> -#ifndef NO_SGIDEFS_H -#include <sgidefs.h> -#endif #ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */ # ifdef __NR_pread diff --git a/sysdeps/unix/sysv/linux/mips/pwrite.c b/sysdeps/unix/sysv/linux/mips/pwrite.c index 130515af6d..4378ebc859 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite.c @@ -20,7 +20,9 @@ #include <assert.h> #include <errno.h> +#ifndef NO_SGIDEFS_H #include <sgidefs.h> +#endif #include <unistd.h> #include <endian.h> @@ -29,9 +31,6 @@ #include <bp-checks.h> #include <kernel-features.h> -#ifndef NO_SGIDEFS_H -#include <sgidefs.h> -#endif #ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */ # ifdef __NR_pwrite diff --git a/sysdeps/unix/sysv/linux/mips/pwrite64.c b/sysdeps/unix/sysv/linux/mips/pwrite64.c index e4908fa779..e5853e432e 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite64.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite64.c @@ -19,7 +19,9 @@ 02111-1307 USA. */ #include <errno.h> +#ifndef NO_SGIDEFS_H #include <sgidefs.h> +#endif #include <unistd.h> #include <endian.h> |
