diff options
author | Melvyn Sopacua <msopacua@php.net> | 2002-10-08 16:20:20 +0000 |
---|---|---|
committer | Melvyn Sopacua <msopacua@php.net> | 2002-10-08 16:20:20 +0000 |
commit | 03777770c003ac852d3168bfd1ec60648c14f2dd (patch) | |
tree | 74d376aaeffc5d62d4d288d910bc29281e413a09 /ext/sysvmsg | |
parent | e9444610eb5e9c6095110d6ef8a958919f8b038d (diff) | |
download | php-git-03777770c003ac852d3168bfd1ec60648c14f2dd.tar.gz |
Fix config bug reported by Jan Lehnart.
Keep it simple, and the size of a pointer is always known, duh.
Diffstat (limited to 'ext/sysvmsg')
-rw-r--r-- | ext/sysvmsg/config.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h>], - [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 <sys/ipc.h> #include <sys/msg.h> ], - [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]) |