Thread (11 messages) 11 messages, 2 authors, 2023-01-14
STALE1247d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH ethtool 3/3] marvell.c: Fix build with musl-libc

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2023-01-13 23:32:10
Subsystem: the rest · Maintainer: Linus Torvalds

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@gmail.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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help