summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-12-03 04:41:49 +0000
committerKevin E Martin <kem@kem.org>2005-12-03 04:41:49 +0000
commit8be272ecd152fa7f2d6e649b52362ce88373af3d (patch)
tree933af223df50b64fddd25b8210ebc17fd8ce492f
parentb9c8f0355a137c5d0ca21b0521aa7d74b9439a40 (diff)
Add check and cflags for malloc(0) returning NULL.
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am2
3 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ac75276..8c9ed46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/configure.ac b/configure.ac
index 08ee5ff..83b7782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ PKG_CHECK_MODULES(XEVIE, xproto x11 xextproto xext evieproto)
AC_SUBST(XEVIE_CFLAGS)
AC_SUBST(XEVIE_LIBS)
+XORG_CHECK_MALLOC_ZERO
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
diff --git a/src/Makefile.am b/src/Makefile.am
index b5b3b8b..8638116 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@ libXevie_la_SOURCES = Xevie.c
libXevie_la_LIBADD = $(XEVIE_LIBS)
-AM_CFLAGS = $(XEVIE_CFLAGS)
+AM_CFLAGS = $(XEVIE_CFLAGS) $(MALLOC_ZERO_CFLAGS)
INCLUDES = -I$(top_srcdir)/include