Re: [PATCH 6/6] compat/nedmalloc: Fix compiler warnings on linux

2013-04-29 Thread Ramsay Jones
Jonathan Nieder wrote: > Hi, > > Ramsay Jones wrote: > >> --- a/compat/nedmalloc/malloc.c.h >> +++ b/compat/nedmalloc/malloc.c.h >> @@ -484,6 +484,10 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not >> HAVE_MMAP >> #define DLMALLOC_VERSION 20804 >> #endif /* DLMALLOC_VERSION */ >> >> +#if

Re: [PATCH 6/6] compat/nedmalloc: Fix compiler warnings on linux

2013-04-29 Thread Ramsay Jones
Junio C Hamano wrote: > Ramsay Jones writes: > >> On linux, when the build variable USE_NED_ALLOCATOR is set, gcc >> issues the following warnings: >> >> In file included from compat/nedmalloc/nedmalloc.c:63: >> .../malloc.c.h: In function 'mmap_resize': >> .../malloc.c.h:3762: warnin

Re: [PATCH 6/6] compat/nedmalloc: Fix compiler warnings on linux

2013-04-28 Thread Jonathan Nieder
Hi, Ramsay Jones wrote: > --- a/compat/nedmalloc/malloc.c.h > +++ b/compat/nedmalloc/malloc.c.h > @@ -484,6 +484,10 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not > HAVE_MMAP > #define DLMALLOC_VERSION 20804 > #endif /* DLMALLOC_VERSION */ > > +#if defined(linux) > +#define _GNU_SOURCE

Re: [PATCH 6/6] compat/nedmalloc: Fix compiler warnings on linux

2013-04-28 Thread Junio C Hamano
Ramsay Jones writes: > On linux, when the build variable USE_NED_ALLOCATOR is set, gcc > issues the following warnings: > > In file included from compat/nedmalloc/nedmalloc.c:63: > .../malloc.c.h: In function 'mmap_resize': > .../malloc.c.h:3762: warning: implicit declaration of funct

[PATCH 6/6] compat/nedmalloc: Fix compiler warnings on linux

2013-04-27 Thread Ramsay Jones
On linux, when the build variable USE_NED_ALLOCATOR is set, gcc issues the following warnings: In file included from compat/nedmalloc/nedmalloc.c:63: .../malloc.c.h: In function 'mmap_resize': .../malloc.c.h:3762: warning: implicit declaration of function 'mremap' .../malloc.c.h: