Re: [PATCH] Add NO_RSYNC to allow building without rsync
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 30, 2008, 19:33 UTC
- Message-ID
- <alpine.LFD.1.10.0807301231050.3334@nehalem.linux-foundation.org>
- In-Reply-To
- <20080730185225.GG10399@yugib.highrise.ca>
On Wed, 30 Jul 2008, Aidan Van Dyk wrote:
> > I came about this because SCO OpenServer doesnt' have mkdtemp. But I never use > rsync, so making it optional was an easy fix.
Hmm. Without mkdtemp(), maybe you could just do a trivial compat function somethin glike
char *git_mkdtemp(char *template)
{
char *n = mktemp(template);
if (mkdir(n))
n = NULL;
return n;
}instead?
Linus