0002-microblaze-include-unix-sysdep.h.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 8415fb8d4f05c023b9d79e44dff197cc285fd1e5 Mon Sep 17 00:00:00 2001
  2. From: Mike Frysinger <vapier@gentoo.org>
  3. Date: Thu, 6 Aug 2015 02:10:46 -0400
  4. Subject: [PATCH] microblaze: include unix/sysdep.h
  5. The semi-recent SYSCALL_CANCEL inclusion broke microblaze due to the
  6. sysdep.h header not including the unix/sysdep.h header. Include it
  7. here like all other ports.
  8. (cherry picked from commit 5d5de49c3ccd69f65b801f1ca490a0112d1cbd7d)
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. [edited to remove ChangeLog modifications, which cause conflicts.]
  11. ---
  12. sysdeps/unix/sysv/linux/microblaze/sysdep.h | 7 ++++++-
  13. 2 files changed, 12 insertions(+), 1 deletion(-)
  14. diff --git a/sysdeps/unix/sysv/linux/microblaze/sysdep.h b/sysdeps/unix/sysv/linux/microblaze/sysdep.h
  15. index 83c0340..9d5c542 100644
  16. --- a/sysdeps/unix/sysv/linux/microblaze/sysdep.h
  17. +++ b/sysdeps/unix/sysv/linux/microblaze/sysdep.h
  18. @@ -16,8 +16,11 @@
  19. License along with the GNU C Library; if not, see
  20. <http://www.gnu.org/licenses/>. */
  21. +#ifndef _LINUX_MICROBLAZE_SYSDEP_H
  22. +#define _LINUX_MICROBLAZE_SYSDEP_H 1
  23. +
  24. +#include <sysdeps/unix/sysdep.h>
  25. #include <sysdeps/microblaze/sysdep.h>
  26. -#include <sys/syscall.h>
  27. /* Defines RTLD_PRIVATE_ERRNO. */
  28. #include <dl-sysdep.h>
  29. @@ -305,3 +308,5 @@ SYSCALL_ERROR_LABEL_DCL: \
  30. # define PTR_DEMANGLE(var) (void) (var)
  31. #endif /* not __ASSEMBLER__ */
  32. +
  33. +#endif /* _LINUX_MICROBLAZE_SYSDEP_H */
  34. --
  35. 2.6.4