bridge-utils-1.5-linux_3.8.x.patch 1012 B

12345678910111213141516171819202122232425262728293031
  1. commit 5eebb7f9288b7881ffb929b1fd494fe3ac3be27d
  2. Author: Russell Senior <russell@personaltelco.net>
  3. Date: Wed Mar 6 12:49:42 2013 -0800
  4. bridge-utils: Fix compile against linux-3.8.x
  5. Linux 3.8 has a header, include/uapi/linux/if_bridge.h that uses a
  6. struct in6_addr but doesn't define it. The trivial seeming fix of
  7. including the header that does define it causes more problems. The
  8. problem was discussed on mailing lists in January 2013. The final
  9. suggestion I found was here:
  10. http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html
  11. This is intended to implement that suggestion.
  12. Signed-off-by: Russell Senior <russell@personaltelco.net>
  13. diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h
  14. index 39964f2..dd14bae 100644
  15. --- a/libbridge/libbridge.h
  16. +++ b/libbridge/libbridge.h
  17. @@ -20,6 +20,7 @@
  18. #define _LIBBRIDGE_H
  19. #include <sys/socket.h>
  20. +#include <netinet/in.h>
  21. #include <linux/if.h>
  22. #include <linux/if_bridge.h>