Ticket #272: osx_o_direct.patch
File osx_o_direct.patch, 466 bytes (added by yww4, 11 years ago) |
---|
-
lib/ior-stdio.c
60 60 if (strcmp(filename,"-") == 0) 61 61 DATA(io)->fd = 0; /* STDIN */ 62 62 else 63 #ifdef __APPLE__ 64 DATA(io)->fd = open(filename,O_RDONLY); 65 #else 63 66 DATA(io)->fd = open(filename,O_RDONLY|(force_directio_read?O_DIRECT:0)); 67 #endif 64 68 io->source = &stdio_source; 65 69 66 70 if (DATA(io)->fd == -1) {