You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

  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)