Skip to content

Commit

Permalink
sys: try to support braindead ubuntu folks
Browse files Browse the repository at this point in the history
  • Loading branch information
sahib committed Jan 11, 2015
1 parent 9f0265f commit 0644a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def check_sha512(context):
def check_c11(context):
rc = 1

context.Message('Checkinf for -std=c11 support...')
context.Message('Checking for -std=c11 support...')
try:
cmd = 'echo "#if __STDC_VERSION__ < 201112L\n#error \"No C11 support!\"\n#endif" | {cc} -xc - -std=c11 -c'
subprocess.check_call(
Expand Down
2 changes: 1 addition & 1 deletion src/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static inline int rm_sys_open(const char *path, int mode) {
mode |= O_LARGEFILE;
#endif

return open(path, mode);
return open(path, mode, (S_IRUSR|S_IWUSR));
}

static inline void rm_sys_close(int fd) {
Expand Down

0 comments on commit 0644a86

Please sign in to comment.