Ports/mgba: Remove unnecessary futimens patch

This commit is contained in:
Tim Ledbetter 2023-08-18 17:49:53 +01:00 committed by Tim Schumacher
parent 0023bc0327
commit 1a9c507093
3 changed files with 2 additions and 46 deletions

View file

@ -1,32 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Luke Wilde <lukew@serenityos.org>
Date: Wed, 13 Apr 2022 17:22:56 +0100
Subject: [PATCH] Remove use of futime(n)s
We do not currently support futimens or futimes. [futimens is a POSIX function,](https://pubs.opengroup.org/onlinepubs/9699919799/)
so this is an issue on our side.
- [ ] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issue(s) with our side of things
- [ ] Hack
---
src/util/vfs/vfs-fd.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/util/vfs/vfs-fd.c b/src/util/vfs/vfs-fd.c
index c15ab5c..8d8d5c8 100644
--- a/src/util/vfs/vfs-fd.c
+++ b/src/util/vfs/vfs-fd.c
@@ -200,11 +200,6 @@ static bool _vfdSync(struct VFile* vf, void* buffer, size_t size) {
UNUSED(size);
struct VFileFD* vfd = (struct VFileFD*) vf;
#ifndef _WIN32
-#ifdef __HAIKU__
- futimens(vfd->fd, NULL);
-#else
- futimes(vfd->fd, NULL);
-#endif
if (buffer && size) {
return msync(buffer, size, MS_ASYNC) == 0;
}

View file

@ -15,7 +15,7 @@ or vsync.
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/platform/sdl/sw-sdl2.c b/src/platform/sdl/sw-sdl2.c
index 48afc33..11bd58c 100644
index 48afc33a60866fb6ddf4fa01ab6343b89171af07..11bd58cb4dc20f0f14a601c3dec62afa5ab25717 100644
--- a/src/platform/sdl/sw-sdl2.c
+++ b/src/platform/sdl/sw-sdl2.c
@@ -25,7 +25,7 @@ bool mSDLSWInit(struct mSDLRenderer* renderer) {

View file

@ -1,18 +1,6 @@
# Patches for mgba on SerenityOS
## `0001-Remove-use-of-futime-n-s.patch`
Remove use of futime(n)s
We do not currently support futimens or futimes. [futimens is a POSIX function,](https://pubs.opengroup.org/onlinepubs/9699919799/)
so this is an issue on our side.
- [ ] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issue(s) with our side of things
- [ ] Hack
## `0002-Use-SDL-software-renderer-with-no-vsync.patch`
## `0001-Use-SDL-software-renderer-with-no-vsync.patch`
Use SDL software renderer with no vsync