[imapfilter-devel] Patch for cygwin
Gautam Gopalakrishnan
gautam.gopalakrishnan at its.monash.edu.au
Thu Apr 29 23:46:22 EEST 2004
On Thu, Apr 29, 2004 at 11:55:39AM +0300, Lefteris Chatzibarbas wrote:
> On Thu, Apr 29, 2004 at 10:20:49AM +1000, Gautam Gopalakrishnan wrote:
> > ! all: \$(BIN)
> > !
> > ! \$(BIN): \$(OBJ)
> > ! EOF
>
> I'm changing this in the Makefile, because it's more correct this way.
>
> Thus, on cygwin, one could also do a:
>
> make BIN=imapfilter.exe
>
> ... and build without problems (or not?).
But it would require people to know the build variables. I'd
rather not have it like this, but I shall leave it to you.
>
> > ! if [ $CYGWIN = 0 ]; then
> > ! echo " \$(CC) \$(LDFLAGS) -o \$(BIN) \$(OBJ) \$(LIBS)" >> Makefile
> > ! else
> > ! echo " \$(CC) \$(LIBS) \$(LDFLAGS) -o \$(BIN) \$(OBJ)" >> Makefile
> > ! fi
>
> Yes, I already changed this to the 2nd form in imapfilter 1.0 (beta) (see
> previous threads).
Cool!
> > + /*
> > + Cygwin blotch
> > + 2048 is the value in limits.h in cygwin
> > + */
> > + #ifndef LINE_MAX
> > + #define LINE_MAX 2048
> > + #endif
>
> Cygwin doesn't define LINE_MAX inside <limits.h> as the POSIX standard
> describes?
I don't what I was smoking when I wrote that. LINE_MAX is not defined in
limits.h in cygwin, precisely why I had to put this in. Code is right,
not the comments. I used 2048 from my Linux's limit.h.
Cheers
Gautam
More information about the Imapfilter-devel
mailing list