From: Maud Spierings via B4 Relay <devnull+maudspierings.gocontroll.com@kernel.org>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Maud Spierings <maudspierings@gocontroll.com>
Subject: [PATCH 2/3] scripts: imx: Makefile.mingw64: add _GNU_SOURCE
Date: Fri, 28 Nov 2025 15:08:53 +0100 [thread overview]
Message-ID: <20251128-imx_usb-v1-2-bb6a5180b38e@gocontroll.com> (raw)
In-Reply-To: <20251128-imx_usb-v1-0-bb6a5180b38e@gocontroll.com>
From: Maud Spierings <maudspierings@gocontroll.com>
imx.c uses asprintf which requires _GNU_SOURCE to be defined, include
defines.h to define it.
Signed-off-by: Maud Spierings <maudspierings@gocontroll.com>
---
scripts/imx/Makefile.mingw64 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/imx/Makefile.mingw64 b/scripts/imx/Makefile.mingw64
index e012d833f1..101b39e917 100644
--- a/scripts/imx/Makefile.mingw64
+++ b/scripts/imx/Makefile.mingw64
@@ -30,7 +30,7 @@ $(if $(obj),, \
# $(realpath ...) resolves symlinks
obj := $(realpath $(obj))
-CPPFLAGS := -I $(LIBUSB_MINGW)/include/libusb-1.0 -I $(src)/../include/ -I $(src)/../../include/mach/
+CPPFLAGS := -I $(LIBUSB_MINGW)/include/libusb-1.0 -I $(src)/../include/ -I $(src)/../../include/mach/ -include $(src)/../include/defines.h
LDFLAGS := -L $(LIBUSB_MINGW)/lib -lusb-1.0 -static
OBJECTS := $(addprefix $(obj)/, imx.o imx-usb-loader.o)
--
2.52.0
next prev parent reply other threads:[~2025-11-28 14:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 14:08 [PATCH 0/3] scripts: imx: imx-usb-loader: fix mingw compilation Maud Spierings via B4 Relay
2025-11-28 14:08 ` [PATCH 1/3] scripts: common: fix pread_full() for windows Maud Spierings via B4 Relay
2025-11-28 14:56 ` Ahmad Fatoum
2025-11-28 15:00 ` Maud Spierings
2025-11-28 15:11 ` Ahmad Fatoum
2025-11-28 14:08 ` Maud Spierings via B4 Relay [this message]
2025-11-28 14:08 ` [PATCH 3/3] gitignore: ignore *.exe Maud Spierings via B4 Relay
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=20251128-imx_usb-v1-2-bb6a5180b38e@gocontroll.com \
--to=devnull+maudspierings.gocontroll.com@kernel.org \
--cc=barebox@lists.infradead.org \
--cc=maudspierings@gocontroll.com \
--cc=s.hauer@pengutronix.de \
/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