diff options
author | Kevin E Martin <kem@kem.org> | 2005-12-03 04:41:51 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-12-03 04:41:51 +0000 |
commit | 68f34d7d3b1564d967f77127b68af6c3de26578b (patch) | |
tree | 5176d398625d1752b4e00a4974ffbae32a90a70d | |
parent | b679a08c793780c08a21af602e4e814cc24b1a93 (diff) |
Add check and cflags for malloc(0) returning NULL.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/Makefile.am | 7 |
3 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2005-12-02 Kevin E. Martin <kem-at-freedesktop-dot-org> + + * configure.ac: + * src/Makefile.am: + Add check and cflags for malloc(0) returning NULL. + 2005-11-26 Thomas Hellstrom <unichrome-at-shipmail-dot-org> * src/Makefile.am: diff --git a/configure.ac b/configure.ac index e917e30..8374350 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,7 @@ PKG_CHECK_MODULES(XVMC, x11 xext xv xextproto videoproto) AC_SUBST(XVMC_CFLAGS) AC_SUBST(XVMC_LIBS) +XORG_CHECK_MALLOC_ZERO XORG_RELEASE_VERSION AC_OUTPUT([Makefile diff --git a/src/Makefile.am b/src/Makefile.am index b16b177..6cb61dd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,13 +7,14 @@ libXvMC_la_SOURCES = \ libXvMCW_la_SOURCES = \ XvMCWrapper.c +AM_CFLAGS = @XVMC_CFLAGS@ -I$(top_srcdir)/include @MALLOC_ZERO_CFLAGS@ + libXvMC_la_LIBADD = @XVMC_LIBS@ -libXvMC_la_CFLAGS = @XVMC_CFLAGS@ -I$(top_srcdir)/include +libXvMC_la_CFLAGS = $(AM_CFLAGS) libXvMCW_la_LIBADD = @XVMC_LIBS@ libXvMCW_la_CFLAGS = \ - @XVMC_CFLAGS@ \ - -I$(top_srcdir)/include \ + $(AM_CFLAGS) \ -DXVMC_CONFIGDIR=XConfigDir \ -DXVMC_SOVERSION=\".1.0\" \ -DXV_SOVERSION=\".1.0\" |