001-include-endian_h.patch 455 B

123456789101112131415
  1. diff --git a/common/network/NetworkUtils.cpp b/common/network/NetworkUtils.cpp
  2. index 3914818..094a311 100644
  3. --- a/common/network/NetworkUtils.cpp
  4. +++ b/common/network/NetworkUtils.cpp
  5. @@ -39,6 +39,10 @@ typedef uint32_t in_addr_t;
  6. #include <resolv.h>
  7. #endif
  8. +#ifdef HAVE_ENDIAN_H
  9. +#include <endian.h>
  10. +#endif
  11. +
  12. #if defined(HAVE_LINUX_NETLINK_H) && defined(HAVE_LINUX_RTNETLINK_H)
  13. #define USE_NETLINK_FOR_DEFAULT_ROUTE 1
  14. #include <linux/netlink.h>