[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230113233148.235543-4-f.fainelli@gmail.com>
Date: Fri, 13 Jan 2023 15:31:48 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: netdev@...r.kernel.org
Cc: Florian Fainelli <f.fainelli@...il.com>,
Michal Kubecek <mkubecek@...e.cz>,
Markus Mayer <mmayer@...adcom.com>,
Andrew Lunn <andrew@...n.ch>
Subject: [PATCH ethtool 3/3] marvell.c: Fix build with musl-libc
After commit 1fa60003a8b8 ("misc: header includes cleanup") we stopped
including net/if.h which resolved the proper defines to pull in
sys/types.h and provide a definition for u_int32_t. With musl-libc we
need to define _GNU_SOURCE to ensure that sys/types.h does provide a
definition for u_int32_t.
Fixes: 1fa60003a8b8 ("misc: header includes cleanup")
Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
---
marvell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/marvell.c b/marvell.c
index d3d570e4d4ad..be2fc36b8fc5 100644
--- a/marvell.c
+++ b/marvell.c
@@ -6,7 +6,7 @@
*/
#include <stdio.h>
-
+#define _GNU_SOURCE
#include "internal.h"
static void dump_addr(int n, const u8 *a)
--
2.34.1
Powered by blists - more mailing lists