0001-Include-a-local-copy-of-sys-queue.h-instead-of-the-l.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From bba2440b57e28d1a63e7bfe635f08908301b1500 Mon Sep 17 00:00:00 2001
  2. From: OpenADK <wbx@openadk.org>
  3. Date: Mon, 4 Jan 2021 16:44:11 +0100
  4. Subject: [PATCH] Include a local copy of sys/queue.h instead of the libc one
  5. Musl seems to not provide this header for whatever reason.
  6. ---
  7. support/include/conffile.h | 2 +-
  8. utils/mountd/v4root.c | 2 +-
  9. 2 files changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/support/include/conffile.h b/support/include/conffile.h
  11. index 7d974fe98f4f3..8d18cace2d5ee 100644
  12. --- a/support/include/conffile.h
  13. +++ b/support/include/conffile.h
  14. @@ -33,7 +33,7 @@
  15. #ifndef _CONFFILE_H_
  16. #define _CONFFILE_H_
  17. -#include <sys/queue.h>
  18. +#include "queue.h"
  19. #include <ctype.h>
  20. #include <stdint.h>
  21. #include <stdbool.h>
  22. diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c
  23. index dd9828eb0c114..4ef909f9e9a6c 100644
  24. --- a/utils/mountd/v4root.c
  25. +++ b/utils/mountd/v4root.c
  26. @@ -13,7 +13,7 @@
  27. #include <sys/types.h>
  28. #include <sys/stat.h>
  29. -#include <sys/queue.h>
  30. +#include "queue.h"
  31. #include <stdio.h>
  32. #include <stdlib.h>
  33. #include <ctype.h>