S_IWRITE is an obsolete synonym of S_IWUSR. Not available on Android.

This commit is contained in:
Michael Rennie
2016-11-04 15:24:08 +00:00
committed by Baldur Karlsson
parent 1b475e017e
commit a2bdda41ef
+1 -1
View File
@@ -370,7 +370,7 @@ int fclose(FILE *f)
void *logfile_open(const char *filename)
{
int fd = open(filename, O_APPEND | O_WRONLY | O_CREAT, S_IWRITE);
int fd = open(filename, O_APPEND | O_WRONLY | O_CREAT, S_IWUSR);
return (void *)(intptr_t)fd;
}