From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: gdb@sources.redhat.com Subject: Re: DOS/Windows-specific code: source.c Date: Tue, 08 May 2001 09:30:00 -0000 Message-id: References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081149.OAA06252@is.elta.co.il> X-SW-Source: 2001-05/msg00133.html Eli Zaretskii writes: > * source.c:openp() > > #ifdef _WIN32 > mode |= O_BINARY; > #endif > > I think this is obsolete and should be removed: defining > CRLF_SOURCE_FILES in xm-whatever should solve the underlying problem. What I do is this: #ifndef O_BINARY #define O_BINARY 0 #endif Put that somewhere global, and then *always* use O_BINARY and don't worry about it.