Skip to content

Commit

Permalink
Add stub symbol for 'utimensat', making it work on Android 2.3 again
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 14, 2022
1 parent 8986f92 commit d8cf7ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/jni/app-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ AndroidGraphicsContext *graphicsContext;

#define MessageBox(a, b, c, d) __android_log_print(ANDROID_LOG_INFO, APP_NAME, "%s %s", (b), (c));

#if PPSSPP_ARCH(ARMV7)
// Old Android workaround
extern "C" {
int utimensat(int fd, const char *path, const struct timespec times[2]) {
return -1;
}
}
#endif

void AndroidLogger::Log(const LogMessage &message) {
int mode;
switch (message.level) {
Expand Down

0 comments on commit d8cf7ce

Please sign in to comment.