0001-musl-compatibility.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. diff --git a/configure.ac b/configure.ac
  2. index e6a23a6..8a7c6d6 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -118,7 +118,6 @@ OVS_CHECK_XENSERVER_VERSION
  6. OVS_CHECK_GROFF
  7. OVS_CHECK_GNU_MAKE
  8. OVS_CHECK_TLS
  9. -OVS_CHECK_ATOMIC_LIBS
  10. OVS_CHECK_GCC4_ATOMICS
  11. OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE(1)
  12. OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE(2)
  13. diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
  14. index 712cb5a..e840f10 100644
  15. --- a/lib/netdev-linux.c
  16. +++ b/lib/netdev-linux.c
  17. @@ -40,7 +40,9 @@
  18. #include <netpacket/packet.h>
  19. #include <net/if.h>
  20. #include <net/if_arp.h>
  21. +#if defined(__UCLIBC__) || defined(__GLIBC__)
  22. #include <net/if_packet.h>
  23. +#endif
  24. #include <net/route.h>
  25. #include <netinet/in.h>
  26. #include <poll.h>
  27. diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h
  28. index 9ead907..0a131d7 100644
  29. --- a/lib/ovs-atomic.h
  30. +++ b/lib/ovs-atomic.h
  31. @@ -318,7 +318,7 @@
  32. #include "util.h"
  33. #define IN_OVS_ATOMIC_H
  34. - #if __CHECKER__
  35. + #if 1
  36. /* sparse doesn't understand some GCC extensions we use. */
  37. #include "ovs-atomic-pthreads.h"
  38. #elif __has_extension(c_atomic)