[PATCH] Include errno.h in sysdep.h for INLINE_SYSCALL using __set_errno

Khem Raj raj.khem@gmail.com
Tue Mar 17 03:43:00 GMT 2009


Hi 

While building glibc for arm I get this error.

/arm-none-linux-gnueabi/obj/eglibc/libc_pic.os: In function `psiginfo':
libc/stdio-common/psiginfo.c:182: undefined reference to `__set_errno'
collect2: ld returned 1 exit status

This happens because write_not_cancel () macro expansion from sysdeps/unix/sysv/linux/not-cancel.h
used INLINE_SYSCALL macro which uses __set_errno but <errno.h> does not get included in while compiling
libc/stdio-common/psiginfo.c

This does not happen on x86 because x86 has its own version of not-cancel.h (nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h)

This patch fixes it on arm.

-- 
Khem Raj

ChangeLog.arm

2009-03-16  Khem Raj  <raj.khem@gmail.com>

	* sysdeps/unix/sysv/linux/arm/sysdep.h: Include errno.h.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-ports/attachments/20090317/1c6f5554/attachment.bin>


More information about the Libc-ports mailing list