diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-16 19:28:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-16 19:28:51 -0700 |
commit | 374976dd138bd4d74608d5658c84c0e257716d0b (patch) | |
tree | fe923ac3e59dcc6ef45922b00a894beaa52c3481 /sysdeps/unix/sysv/linux/sparc/bits | |
parent | edc218041ef05fde20a7f7e6b24033a72deedce1 (diff) |
Fix SHMLBA on sparc.
[BZ #6471]
* sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
properly.
* sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
* sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
sysdep_routines when subdir is sysvipc.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
__getshmlba helper.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/bits/shm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/shm.h b/sysdeps/unix/sysv/linux/sparc/bits/shm.h index b0966d61c2..eb530de98f 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/shm.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/shm.h @@ -40,8 +40,8 @@ __BEGIN_DECLS /* Segment low boundary address multiple. */ -#define SHMLBA (__getpagesize ()) -extern int __getpagesize (void) __THROW __attribute__ ((__const__)); +#define SHMLBA (__getshmlba ()) +extern int __getshmlba (void) __attribute__ ((__const__)); /* Type to count number of attaches. */ |