mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-10 15:19:09 +02:00
See Holger's comment at https://github.com/gentoo/gentoo/pull/38710#issuecomment-2366830999. Bug: https://bugs.gentoo.org/939811 Signed-off-by: Sam James <sam@gentoo.org>
35 lines
763 B
Diff
35 lines
763 B
Diff
From https://bugs.gentoo.org/939811
|
|
From: Holger Hoffstätte <holger@applied-asynchrony.com>
|
|
|
|
--- a/bridge/mst.c
|
|
+++ b/bridge/mst.c
|
|
@@ -4,8 +4,6 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
-#include <linux/if_bridge.h>
|
|
-#include <net/if.h>
|
|
|
|
#include "libnetlink.h"
|
|
#include "json_print.h"
|
|
@@ -13,6 +11,9 @@
|
|
|
|
#include "br_common.h"
|
|
|
|
+#include <linux/if_bridge.h>
|
|
+#include <net/if.h>
|
|
+
|
|
#define MST_ID_LEN 9
|
|
|
|
#define __stringify_1(x...) #x
|
|
--- a/include/json_print.h
|
|
+++ b/include/json_print.h
|
|
@@ -11,6 +11,8 @@
|
|
#include "json_writer.h"
|
|
#include "color.h"
|
|
|
|
+struct timeval;
|
|
+
|
|
#define _IS_JSON_CONTEXT(type) (is_json_context() && (type & PRINT_JSON || type & PRINT_ANY))
|
|
#define _IS_FP_CONTEXT(type) (!is_json_context() && (type & PRINT_FP || type & PRINT_ANY))
|
|
|