mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-12 11:41:33 +02:00
Improve support for private platforms (#11220)
This commit is contained in:
@@ -370,10 +370,8 @@ static int SDL_fdatasync(int fd)
|
||||
result = fcntl(fd, F_FULLFSYNC);
|
||||
#elif defined(SDL_PLATFORM_HAIKU)
|
||||
result = fsync(fd);
|
||||
#elif defined(_POSIX_SYNCHRONIZED_IO) // POSIX defines this if fdatasync() exists, so we don't need a CMake test.
|
||||
#ifndef SDL_PLATFORM_RISCOS // !!! FIXME: however, RISCOS doesn't have the symbol...maybe we need to link to an extra library or something?
|
||||
#elif defined(HAVE_FDATASYNC)
|
||||
result = fdatasync(fd);
|
||||
#endif
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user