logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0025-Include-sys-sysmacros.h-if-necessary.patch (1689B)


  1. From bf938d0fd70582d8d7942c2f04c2d4209b9b8633 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 5 Aug 2019 21:42:54 -0700
  4. Subject: [PATCH] Include sys/sysmacros.h if necessary
  5. ---
  6. bin/pax/cpio.c | 4 ++++
  7. bin/pax/gen_subs.c | 3 +++
  8. bin/pax/tar.c | 3 +++
  9. usr.bin/rsync/flist.c | 4 ++++
  10. 4 files changed, 14 insertions(+)
  11. diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c
  12. index be0316d8dd9..fbcf032e091 100644
  13. --- a/bin/pax/cpio.c
  14. +++ b/bin/pax/cpio.c
  15. @@ -41,6 +41,10 @@
  16. #include <stdio.h>
  17. #include <unistd.h>
  18. #include <stdlib.h>
  19. +#ifndef major
  20. +#include <sys/sysmacros.h>
  21. +#endif
  22. +
  23. #include "pax.h"
  24. #include "cpio.h"
  25. #include "extern.h"
  26. diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c
  27. index fcda4d37391..928cfcd3657 100644
  28. --- a/bin/pax/gen_subs.c
  29. +++ b/bin/pax/gen_subs.c
  30. @@ -45,6 +45,9 @@
  31. #include <unistd.h>
  32. #include <utmp.h>
  33. #include <vis.h>
  34. +#ifndef major
  35. +#include <sys/sysmacros.h>
  36. +#endif
  37. #include "pax.h"
  38. #include "extern.h"
  39. diff --git a/bin/pax/tar.c b/bin/pax/tar.c
  40. index ef22a9fd2d8..a0cbb31b547 100644
  41. --- a/bin/pax/tar.c
  42. +++ b/bin/pax/tar.c
  43. @@ -47,6 +47,9 @@
  44. #include <stdlib.h>
  45. #include <string.h>
  46. #include <unistd.h>
  47. +#ifndef major
  48. +#include <sys/sysmacros.h>
  49. +#endif
  50. #include "pax.h"
  51. #include "extern.h"
  52. diff --git a/usr.bin/rsync/flist.c b/usr.bin/rsync/flist.c
  53. index cdc9f1da1dd..8832420cce0 100644
  54. --- a/usr.bin/rsync/flist.c
  55. +++ b/usr.bin/rsync/flist.c
  56. @@ -16,6 +16,10 @@
  57. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  58. */
  59. #include <sys/stat.h>
  60. +#include <sys/types.h>
  61. +#ifndef major
  62. +#include <sys/sysmacros.h>
  63. +#endif
  64. #include <assert.h>
  65. #include <errno.h>
  66. --
  67. 2.49.0