alpha: Include errno.h in sysdep.h
authorRichard Henderson <rth@twiddle.net>
Thu, 21 Feb 2013 00:49:25 +0000 (16:49 -0800)
committerRichard Henderson <rth@twiddle.net>
Thu, 21 Feb 2013 00:49:25 +0000 (16:49 -0800)
Recent changes in malloc-sysdep.h exposed this error, the
symptom being __set_errno was not defined early enough.

ports/ChangeLog.alpha
ports/sysdeps/unix/alpha/sysdep.h

index 0ac8add048aa2faae255e4a1d4056474d94fd6c3..9cd207639a2c735c9ce66629a2d0d366b5818053 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-20  Richard Henderson  <rth@redhat.com>
+
+       * sysdeps/unix/alpha/sysdep.h: Include <errno.h>.
+
 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Add
index 3b71a5ec6c55112d20e95076480f24d13504465f..d20bcd6d314c773919aed6b3ff146da9d7618f1a 100644 (file)
@@ -161,6 +161,9 @@ __LABEL(name)                                               \
 
 #else /* !ASSEMBLER */
 
+/* In order to get __set_errno() definition in INLINE_SYSCALL.  */
+#include <errno.h>
+
 /* ??? Linux needs to be able to override INLINE_SYSCALL for one
    particular special case.  Make this easy.  */