Browse Source

Fix compiling for Android

Compiler complains

  error: 'open' has superfluous mode bits; missing O_CREAT?
pull/779/head
Matthias Kuhn GitHub 3 years ago
parent
commit
b9cbd4452f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/test_util_file.c

+ 1
- 1
tests/test_util_file.c View File

@@ -93,7 +93,7 @@ static void test_write_to_file()
static void stat_and_cat(const char *file)
{
struct stat sb;
int d = open(file, O_RDONLY, 0600);
int d = open(file, O_CREAT | O_RDONLY, 0600);
if (d < 0)
{
printf("FAIL: unable to open %s: %s\n", file, strerror(errno));


Loading…
Cancel
Save