[PATCH] support kernels without __ARCH_WANT_SYSCALL_DEPRECATED

Mike Frysinger vapier at gentoo.org
Fri Apr 27 03:39:37 UTC 2012


On Thursday 26 April 2012 10:16:53 Mark Salter wrote:
> --- a/libc/sysdeps/linux/common/getdents.c
> +++ b/libc/sysdeps/linux/common/getdents.c
> 
>  ssize_t __getdents (int fd, char *buf, size_t nbytes) attribute_hidden;
> 
> +#ifdef __NR_getdents
>  #define __NR___syscall_getdents __NR_getdents
>  static __always_inline _syscall3(int, __syscall_getdents, int, fd,
> unsigned char *, kdirp, size_t, count)
> +#endif
> 
> -#if defined __ASSUME_GETDENTS32_D_TYPE
> +#if defined __NR_getdents && defined __ASSUME_GETDENTS32_D_TYPE
> 
>  ssize_t __getdents (int fd, char *buf, size_t nbytes)
>  {

if __NR_getdents isn't defined, then we shouldn't define 
__ASSUME_GETDENTS32_D_TYPE
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120426/670fe96a/attachment.asc>


More information about the uClibc mailing list