1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning.

* iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available.
This commit is contained in:
Werner Koch 2002-10-21 16:32:10 +00:00
parent 07ebd38ff7
commit 4b2cd72c24
3 changed files with 11 additions and 1 deletions

View file

@ -208,6 +208,10 @@ direct_open (const char *fname, const char *mode)
else {
oflag = O_RDONLY;
}
#ifdef O_BINARY
if (strchr (mode, 'b'))
oflag |= O_BINARY;
#endif
#ifndef __riscos__
return open (fname, oflag, cflag );
#else