From 6406e61e5cd6c7c7f67c903eb58c3d53f99dc03c Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 29 Dec 2010 19:40:02 +0000 Subject: [PATCH] Properly prefix the creat function for sim builds, otherwise the system creat() is called, which doesn't do proper root-mangling to make the file end up in the right place. Fixes FS#11844 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28927 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index a8fff839c6..e07d5b4d5d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -314,7 +314,7 @@ static const struct plugin_api rockbox_api = { #ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE (creat_func)creat_wrapper, #else - (creat_func)creat, + PREFIX(creat), #endif (write_func)PREFIX(write), remove,