diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-08 15:56:55 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-08 15:56:55 +0000 |
commit | 419871126d5b380fb417a7992ddb07f1ac962c6b (patch) | |
tree | 7686c51866a1c5d04481a0c0480ed3cbfba46e45 /bootstrap | |
parent | 93f73931614269c5d915614f4d4e4fc6850af811 (diff) | |
download | grep-419871126d5b380fb417a7992ddb07f1ac962c6b.tar.gz |
CRLF handling.
Do CRLF munging only if HAVE_DOS_FILE_CONTENTS, instead of
having it depend on O_BINARY (which leads to incorrect results
on BeOS, VMS, and MacOS).
* bootstrap/Makefile.try (DEFS): Add -DHAVE_DOS_FILE_CONTENTS.
* src/system.h (SET_BINARY): Define only if HAVE_DOS_FILE_CONTENTS.
(O_BINARY): Do not define.
* m4/dosfile.m4: Define HAVE_DOS_FILE_CONTENTS if it appears we're
using DOS.
* src/grep.c (undossify_input, fillbuf, dosbuf.c, prline, main):
Depend on HAVE_DOS_FILE_CONTENTS, not O_BINARY, when handling CRLF
matters.
(grepfile, main): Depend on SET_BINARY, not O_BINARY, when
handling binary files on hosts that care about text versus binary.
* lib/getpagesize.h (getpagesize): Define to B_PAGE_SIZE if
__BEOS__ is defined. Based on a fix by Bruno Haible
<haible@clisp.cons.org>.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Makefile.try | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap/Makefile.try b/bootstrap/Makefile.try index 24d3f0b4..bd9aef16 100644 --- a/bootstrap/Makefile.try +++ b/bootstrap/Makefile.try @@ -48,6 +48,7 @@ DEFS = -I. \ # DOS/WIN (change also OBJEXT/EXEEXT, see above) # DOS/DJGPP DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_STRERROR -DHAVE_DIRENT_H \ + -DHAVE_DOS_FILE_CONTENTS \ -DHAVE_DOS_FILE_NAMES -DHAVE_UNISTD_H -DHAVE_SETMODE #### |