Mercurial > emacs
diff src/termcap.c @ 7685:5fbc009f3dc3
*** empty log message ***
| author | Roland McGrath <roland@gnu.org> |
|---|---|
| date | Wed, 25 May 1994 23:06:05 +0000 |
| parents | 1f2f6bb3690f |
| children | 8a5a170b8646 |
line wrap: on
line diff
--- a/src/termcap.c Wed May 25 22:09:47 1994 +0000 +++ b/src/termcap.c Wed May 25 23:06:05 1994 +0000 @@ -46,6 +46,10 @@ #define NULL (char *) 0 #endif +#ifndef O_RDONLY +#define O_RDONLY 0 +#endif + /* BUFSIZE is the initial size allocated for the buffer for reading the termcap file. It is not a limit. @@ -459,9 +463,9 @@ /* Here we know we must search a file and termcap_name has its name. */ #ifdef MSDOS - fd = open (termcap_name, O_TEXT, 0); + fd = open (termcap_name, O_RDONLY|O_TEXT, 0); #else - fd = open (termcap_name, 0, 0); + fd = open (termcap_name, O_RDONLY, 0); #endif if (fd < 0) return -1;
