diff --git a/ChangeLog.ia64 b/ChangeLog.ia64 index 307fac353d..11ba030450 100644 --- a/ChangeLog.ia64 +++ b/ChangeLog.ia64 @@ -1,3 +1,7 @@ +2012-05-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include errno.h. + 2012-05-06 Mike Frysinger * data/localplt-ia64-linux-gnu.data: New file. diff --git a/sysdeps/unix/sysv/linux/ia64/sysdep.h b/sysdeps/unix/sysv/linux/ia64/sysdep.h index ebaec95279..5d02429e05 100644 --- a/sysdeps/unix/sysv/linux/ia64/sysdep.h +++ b/sysdeps/unix/sysv/linux/ia64/sysdep.h @@ -25,6 +25,11 @@ #include #include +/* In order to get __set_errno() definition in INLINE_SYSCALL. */ +#ifndef __ASSEMBLER__ +#include +#endif + /* As of GAS v2.4.90.0.7, including a ".align" directive inside a function will cause bad unwind info to be emitted (GAS doesn't know how to account for the padding introduced by the .align directive).