From 03777770c003ac852d3168bfd1ec60648c14f2dd Mon Sep 17 00:00:00 2001 From: Melvyn Sopacua Date: Tue, 8 Oct 2002 16:20:20 +0000 Subject: Fix config bug reported by Jan Lehnart. Keep it simple, and the size of a pointer is always known, duh. --- ext/sysvmsg/config.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/sysvmsg') diff --git a/ext/sysvmsg/config.m4 b/ext/sysvmsg/config.m4 index 1bc2dba7d8..05235f998e 100644 --- a/ext/sysvmsg/config.m4 +++ b/ext/sysvmsg/config.m4 @@ -9,9 +9,9 @@ if test "$PHP_SYSVMSG" != "no"; then [#include #include #include ], - [struct msgbuf *foo; + [size_t i; - foo = (struct msgbuf *) malloc(sizeof(struct msgbuf*) +1); + i = sizeof(struct msgbuf); return 1;], [AC_MSG_RESULT(msgbuf)], [AC_TRY_COMPILE( @@ -19,9 +19,9 @@ if test "$PHP_SYSVMSG" != "no"; then #include #include ], - [struct mymsg *foo; + [size_t i; - foo = (struct mymsg *) malloc(sizeof(struct mymsg*) +1); + i = sizeof(struct mymsg); return 1; ], [AC_DEFINE(msgbuf, mymsg, [msgbuf is called mymsg]) -- cgit v1.2.1