[PATCH] ext/sysvmsg compatibility
| From: | Melvyn Sopacua | Date: | Sun, 08 Sep 2002 01:59:13 +0000 |
| Subject: | [PATCH] ext/sysvmsg compatibility | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-88054@lists.php.net to get a copy of this message | ||
Hi,
Attached, compatibility patch, for BSD/OS 4.x and at quick glance, also
FreeBSD 4.6-RELEASE.
The reported error without patch is:
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c: In function `zif_msg_receive':
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:271: sizeof applied to an incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:287: dereferencing pointer to incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:292: dereferencing pointer to incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:304: dereferencing pointer to incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c: In function `zif_msg_send':
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:344: sizeof applied to an incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:345: dereferencing pointer to incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:350: sizeof applied to an incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:351: dereferencing pointer to incomplete type
/home/mdev/cvs/php4/ext/sysvmsg/sysvmsg.c:356: dereferencing pointer to incomplete type
Further more, there is no MSG_EXCEPT, only MSG_NOERROR.
Subsequently there's no kernel support, to get the first message on the queue, that
has a different type than `msgtype'.
I have now just ifdeffed it, but it probably should be defined and issue
a warning, about this missing functionality - or ideally - the functionality should be
coded in.
--
Melvyn.