[PHP-DEV] Re: [PHP-CVS] cvs: php4 / acinclude.m4 From: Stanislav Malyshev (stas <email protected>)
Date: 09/11/00

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 <email protected>  http://www.zend.com/        
+972-3-6139665 ext.106

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>