From: Erik Faye-Lund Date: Wed, 07 Apr 2010 16:44:16 GMT Subject: Re: [PATCH v2] Make xmalloc and xrealloc thread-safe Message-ID: In-Reply-To: On Wed, Apr 7, 2010 at 6:13 PM, Fredrik Kuivinen wrote: > On Wed, Apr 7, 2010 at 17:08, Nicolas Pitre wrote: >> On Wed, 7 Apr 2010, Fredrik Kuivinen wrote: >>> diff --git a/thread-utils.c b/thread-utils.c >>> index 4f9c829..3c8d817 100644 >>> --- a/thread-utils.c >>> +++ b/thread-utils.c >>> @@ -1,4 +1,5 @@ >>>  #include "cache.h" >>> +#include >> >> This will fail compilation on Windows surely? > > I think it will work. We use "#include " in builtin/grep.c, > builtin/pack-objects.c, and preload-index.c already. > Still, isn't this REALLY the kind of stuff that usually goes in git-compat-util.h? I'm not asking you to change it, I'm just a bit puzzled that the other pthread-clients did it this way... -- Erik "kusma" Faye-Lund