1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

For lsmtest, use a more portable means of setting open() files to binary.

FossilOrigin-Name: aea6e0ffd33f41482f1b53b9f21b77add2865abda4eec1d9ee197177f74f43d0
This commit is contained in:
mistachkin
2017-07-07 21:15:24 +00:00
parent 1d91e9f26a
commit 85bd1cd52b
6 changed files with 18 additions and 18 deletions

View File

@ -227,7 +227,7 @@ int do_io(int nArg, char **azArg){
aData = malloc(pgsz);
memset(aData, 0x77, pgsz);
ctx.fd = open(zFile, O_RDWR|O_CREAT, 0644);
ctx.fd = open(zFile, O_RDWR|O_CREAT|_O_BINARY, 0644);
if( ctx.fd<0 ){
perror("open: ");
return -1;