You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

  1. From 968aa53dd6d2c0831a9af01873441767c06b88d0 Mon Sep 17 00:00:00 2001
  2. From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
  3. Date: Wed, 1 Aug 2018 12:17:10 +0200
  4. Subject: [PATCH] mksquashfs/unsquashfs: fix compilation with glibc 2.25+
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. From glibc 2.25 release notes:
  9. https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html
  10. "* The inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
  11. This means that in a future release, the macros “major”, “minor”, and
  12. “makedev” will only be available from <sys/sysmacros.h>."
  13. See glibc bug https://sourceware.org/bugzilla/show_bug.cgi?id=19239 .
  14. ---
  15. squashfs-tools/mksquashfs.c | 1 +
  16. squashfs-tools/unsquashfs.c | 1 +
  17. 2 files changed, 2 insertions(+)
  18. diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
  19. index d696a51..8d57c3e 100644
  20. --- a/squashfs-tools/mksquashfs.c
  21. +++ b/squashfs-tools/mksquashfs.c
  22. @@ -35,6 +35,7 @@
  23. #include <stddef.h>
  24. #include <sys/types.h>
  25. #include <sys/stat.h>
  26. +#include <sys/sysmacros.h>
  27. #include <fcntl.h>
  28. #include <errno.h>
  29. #include <dirent.h>
  30. diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
  31. index a57f85c..a492b27 100644
  32. --- a/squashfs-tools/unsquashfs.c
  33. +++ b/squashfs-tools/unsquashfs.c
  34. @@ -33,6 +33,7 @@
  35. #include "fnmatch_compat.h"
  36. #include <sys/sysinfo.h>
  37. +#include <sys/sysmacros.h>
  38. #include <sys/types.h>
  39. #include <sys/time.h>
  40. #include <sys/resource.h>
  41. --
  42. 2.21.0