diff options
Diffstat (limited to 'meta-networking/recipes-support/bridge-utils/bridge-utils/0004-libbridge-add-missing-include-s-fix-build-against-mu.patch')
| -rw-r--r-- | meta-networking/recipes-support/bridge-utils/bridge-utils/0004-libbridge-add-missing-include-s-fix-build-against-mu.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/0004-libbridge-add-missing-include-s-fix-build-against-mu.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/0004-libbridge-add-missing-include-s-fix-build-against-mu.patch new file mode 100644 index 0000000000..565186e0fa --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/0004-libbridge-add-missing-include-s-fix-build-against-mu.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | From c45b73829a8b8c7924df528baa7e16498f917288 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: root <git@andred.net> | ||
| 3 | Date: Wed, 20 Jul 2016 23:40:33 +0100 | ||
| 4 | Subject: [PATCH 4/5] libbridge: add missing #include's (fix build against | ||
| 5 | musl) | ||
| 6 | MIME-Version: 1.0 | ||
| 7 | Content-Type: text/plain; charset=UTF-8 | ||
| 8 | Content-Transfer-Encoding: 8bit | ||
| 9 | |||
| 10 | Fixes error like: | ||
| 11 | |||
| 12 | In file included from libbridge_devif.c:28:0: | ||
| 13 | libbridge.h:45:17: error: field 'max_age' has incomplete type | ||
| 14 | struct timeval max_age; | ||
| 15 | ^~~~~~~ | ||
| 16 | In file included from libbridge_devif.c:28:0: | ||
| 17 | libbridge.h:51:2: error: unknown type name 'u_int16_t' | ||
| 18 | u_int16_t root_port; | ||
| 19 | ^~~~~~~~~ | ||
| 20 | |||
| 21 | These types are not standard C but rather Posix, | ||
| 22 | for struct timeval see: | ||
| 23 | http://pubs.opengroup.org/onlinepubs/7908799/xsh/systime.h.html | ||
| 24 | |||
| 25 | Upstream-Status: Pending | ||
| 26 | |||
| 27 | Signed-off-by: André Draszik <git@andred.net> | ||
| 28 | --- | ||
| 29 | libbridge/libbridge.h | 2 ++ | ||
| 30 | 1 file changed, 2 insertions(+) | ||
| 31 | |||
| 32 | diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h | ||
| 33 | index 53ec869..b0727c1 100644 | ||
| 34 | --- a/libbridge/libbridge.h | ||
| 35 | +++ b/libbridge/libbridge.h | ||
| 36 | @@ -20,6 +20,8 @@ | ||
| 37 | #define _LIBBRIDGE_H | ||
| 38 | |||
| 39 | #include <sys/socket.h> | ||
| 40 | +#include <sys/time.h> | ||
| 41 | +#include <sys/types.h> | ||
| 42 | #include <linux/in6.h> | ||
| 43 | #include <linux/if.h> | ||
| 44 | #include <linux/if_bridge.h> | ||
| 45 | -- | ||
| 46 | 2.8.1 | ||
| 47 | |||
