systemd-05-endian-explicitly-include-endian.h-wherever-we-want-.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From 6017365a1d0c1c78fc34a7da63768ee5df5da511 Mon Sep 17 00:00:00 2001
  2. From: Lennart Poettering <lennart@poettering.net>
  3. Date: Fri, 11 Jul 2014 16:13:13 +0200
  4. Subject: [PATCH] endian: explicitly include endian.h wherever we want to use
  5. __BYTE_ORDER
  6. ---
  7. src/libsystemd/sd-bus/bus-protocol.h | 1 +
  8. src/shared/architecture.h | 2 ++
  9. src/shared/gpt.h | 2 ++
  10. 3 files changed, 5 insertions(+)
  11. diff --git a/src/libsystemd/sd-bus/bus-protocol.h b/src/libsystemd/sd-bus/bus-protocol.h
  12. index 5046d17..4f46468 100644
  13. --- a/src/libsystemd/sd-bus/bus-protocol.h
  14. +++ b/src/libsystemd/sd-bus/bus-protocol.h
  15. @@ -21,6 +21,7 @@
  16. along with systemd; If not, see <http://www.gnu.org/licenses/>.
  17. ***/
  18. +#include <endian.h>
  19. /* Endianness */
  20. diff --git a/src/shared/architecture.h b/src/shared/architecture.h
  21. index 58e97e5..38780d1 100644
  22. --- a/src/shared/architecture.h
  23. +++ b/src/shared/architecture.h
  24. @@ -21,6 +21,8 @@
  25. along with systemd; If not, see <http://www.gnu.org/licenses/>.
  26. ***/
  27. +#include <endian.h>
  28. +
  29. #include "util.h"
  30. /* A cleaned up architecture definition. We don't want to get lost in
  31. diff --git a/src/shared/gpt.h b/src/shared/gpt.h
  32. index 278940b..ef3444f 100644
  33. --- a/src/shared/gpt.h
  34. +++ b/src/shared/gpt.h
  35. @@ -19,6 +19,8 @@
  36. along with systemd; If not, see <http://www.gnu.org/licenses/>.
  37. ***/
  38. +#include <endian.h>
  39. +
  40. #include "sd-id128.h"
  41. /* We only support root disk discovery for x86, x86-64 and ARM for
  42. --
  43. 2.0.0