1
0
mirror of https://github.com/git/git.git synced 2024-09-29 17:51:22 +02:00
git/compat
Junio C Hamano a02cf90144 compat/fnmatch/fnmatch.c: give a fall-back definition for NULL
Somebody tried to compile fnmatch.c compatibility file on Interix and got
an error because no header included in the file on that platform defined
NULL.  It usually comes from stddef.h and indirectly from other headers
like string.h, unistd.h, stdio.h, stdlib.h, etc., but with the way we
compile this file from our Makefile, inclusion of the header files that
are expected to define NULL in fnmatch.c do not happen because they are
protected with "#ifdef STDC_HEADERS", etc. which we do not pass.

As the least-impact workaround, give a fall-back definition when none of
the headers define NULL.

Noticed-by: Markus Duft <mduft@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-05-26 09:25:47 -07:00
..
fnmatch compat/fnmatch/fnmatch.c: give a fall-back definition for NULL 2011-05-26 09:25:47 -07:00
nedmalloc remove doubled words, e.g., s/to to/to/, and fix related typos 2011-04-13 11:59:11 -07:00
regex
vcbuild Merge branch 'rj/msvc-fix' 2010-12-16 12:55:36 -08:00
win32 Merge branch 'rj/msvc-fix' 2010-12-16 12:55:36 -08:00
basename.c
bswap.h compat: make gcc bswap an inline function 2011-03-16 12:44:59 -07:00
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c Merge branch 'js/mingw-shutdown' 2011-05-23 10:27:12 -07:00
mingw.h Merge branch 'js/mingw-shutdown' 2011-05-23 10:27:12 -07:00
mkdtemp.c
mmap.c
msvc.c
msvc.h compat: provide a fallback va_copy definition 2011-02-26 01:06:50 -08:00
pread.c
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtok_r.c
strtoumax.c
unsetenv.c
win32.h
win32mmap.c
winansi.c