In function 'open',
inlined from 'my_mkfile' at static.c:34:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument
needs 3 arguments
Subject: | static.c.patch |
--- static.c.orig 2009-07-19 15:15:35.000000000 +0200
+++ static.c 2009-10-22 13:24:20.000000000 +0200
@@ -31,7 +31,7 @@
if ( (unsigned long)PL_statbuf.st_size == size ) return -2;
}
- i = open(my_file, O_CREAT | O_WRONLY | OPEN_O_BINARY);
+ i = open(my_file, O_CREAT | O_WRONLY | OPEN_O_BINARY, 0644);
if (i == -1) {
fprintf(stderr, "%s: creation of %s failed - aborting with %i.\n", argv0, my_file, errno);