From: Jules Maselbas <jmaselbas@zdiv.net>
To: barebox@lists.infradead.org
Cc: Jules Maselbas <jmaselbas@zdiv.net>
Subject: [PATCH 1/2] sandbox: sdl: fix compilation on musl-libc
Date: Fri, 14 Mar 2025 16:14:40 +0100 [thread overview]
Message-ID: <20250314151441.23223-1-jmaselbas@zdiv.net> (raw)
fails to compile with "unknown type name 'loff_t'; did you mean 'off_t'"
error, add missing include and also define _GNU_SOURCE
Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>
---
arch/sandbox/os/sdl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/sandbox/os/sdl.c b/arch/sandbox/os/sdl.c
index 87c8265ea9..0c31b6ce87 100644
--- a/arch/sandbox/os/sdl.c
+++ b/arch/sandbox/os/sdl.c
@@ -3,8 +3,11 @@
* Copyright (c) 2021 Ahmad Fatoum
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdbool.h>
+#include <stdint.h>
+#include <fcntl.h>
#include <SDL.h>
#include <mach/linux.h>
--
2.48.1
next reply other threads:[~2025-03-14 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 15:14 Jules Maselbas [this message]
2025-03-14 15:14 ` [PATCH 2/2] sandbox: sdl: make window variable static Jules Maselbas
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=20250314151441.23223-1-jmaselbas@zdiv.net \
--to=jmaselbas@zdiv.net \
--cc=barebox@lists.infradead.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