Re: cvs: php4 / acinclude.m4
| From: | Stanislav Malyshev | Date: | Mon, 11 Sep 2000 15:41:53 +0000 |
| Subject: | Re: cvs: php4 / acinclude.m4 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-32927@lists.php.net to get a copy of this message | ||
SS>> main() {
SS>> DIR *dir;
SS>> - struct dirent entry, *pentry;
SS>> + char entry[sizeof(struct dirent)+257];
SS>> + struct dirent *pentry = (struct dirent *) &entry;
SS>>
SS>> dir = opendir("/");
SS>> if (!dir)
Actually, I wanted to do something different - make configure to check for
that NULL case and drop the HAVE_POSIX flag if NULL case doesn't work. I'm
attaching the patch that does it - please check it. The only problem is
that #undef HAVE_POSIX_READDIR_R doesn't really work - configure turns it
back to #define. Maybe I have to undefine it in configure itself?
--
Stanislav Malyshev stas@zend.com http://www.zend.com/
+972-3-6139665 ext.106