Re: [PATCH] Replace hard-coded path with one from <paths.h>
- From
Chris Webb <chris@arachsys.com>
- Date
- Apr 8, 2010, 10:58 UTC
- Message-ID
- <20100408105850.GD2146@arachsys.com>
- In-Reply-To
- <n2u40aa078e1004070357m143cfaccvdc754a3bc5fe1ae1@mail.gmail.com>
Erik Faye-Lund <kusmabite@googlemail.com> writes:
> > +#include <paths.h> > > This breaks on Windows due to missing paths.h. I guess you need some > guard to detect if the header is present or not.
Is this true of all WIN32, or just __MINGW32__ / __CYGWIN__? Presumably /usr/local/bin:/usr/bin:/bin is the wrong default PATH on windows too, so perhaps I should sort that at the same point---what would a canonical default PATH be for Windows?
Cheers,
Chris.