From: Florian Fainelli <f.fainelli@gmail.com>
To: netdev@vger.kernel.org
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Michal Kubecek <mkubecek@suse.cz>,
Markus Mayer <mmayer@broadcom.com>, Andrew Lunn <andrew@lunn.ch>
Subject: [PATCH ethtool 3/3] marvell.c: Fix build with musl-libc
Date: Fri, 13 Jan 2023 15:31:48 -0800 [thread overview]
Message-ID: <20230113233148.235543-4-f.fainelli@gmail.com> (raw)
In-Reply-To: <20230113233148.235543-1-f.fainelli@gmail.com>
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
next prev parent reply other threads:[~2023-01-13 23:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 23:31 [PATCH ethtool 0/3] Build fixes for older kernel headers and musl Florian Fainelli
2023-01-13 23:31 ` [PATCH ethtool 1/3] misc: Fix build with kernel headers < v4.11 Florian Fainelli
2023-01-13 23:57 ` Michal Kubecek
2023-01-14 0:11 ` Florian Fainelli
2023-01-14 2:07 ` Florian Fainelli
2023-01-13 23:31 ` [PATCH ethtool 2/3] netlink: Fix maybe uninitialized 'meters' variable Florian Fainelli
2023-01-14 0:09 ` Michal Kubecek
2023-01-14 0:12 ` Florian Fainelli
2023-01-13 23:31 ` Florian Fainelli [this message]
2023-01-14 0:13 ` [PATCH ethtool 3/3] marvell.c: Fix build with musl-libc Michal Kubecek
2023-01-14 2:07 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230113233148.235543-4-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=mkubecek@suse.cz \
--cc=mmayer@broadcom.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).