summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.h2
-rw-r--r--apps/plugins/rockboy/rockmacros.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index e69ab52..f025704 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -295,7 +295,7 @@ struct plugin_api {
/* file */
int (*PREFIX(open))(const char* pathname, int flags);
- int (*close)(int fd);
+ int (*PREFIX(close))(int fd);
ssize_t (*PREFIX(read))(int fd, void* buf, size_t count);
off_t (*PREFIX(lseek))(int fd, off_t offset, int whence);
int (*PREFIX(creat))(const char *pathname);
diff --git a/apps/plugins/rockboy/rockmacros.h b/apps/plugins/rockboy/rockmacros.h
index 01beb43..0e63bad 100644
--- a/apps/plugins/rockboy/rockmacros.h
+++ b/apps/plugins/rockboy/rockmacros.h
@@ -75,7 +75,7 @@ void dynamic_recompile (struct dynarec_block *newblock);
#undef lseek
#define lseek(a,b,c) rb->sim_lseek((a),(b),(c))
#undef close
-#define close(a) rb->close((a))
+#define close(a) rb->sim_close((a))
#undef read
#define read(a,b,c) rb->sim_read((a),(b),(c))
#undef write