RE: bug #7162 SUN CC 5.0 fails on php 4.0.3
| From: | Jason Greene | Date: | Fri, 13 Oct 2000 17:26:45 +0000 |
| Subject: | RE: bug #7162 SUN CC 5.0 fails on php 4.0.3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34922@lists.php.net to get a copy of this message | ||
The problem is with CVS patch 1.103+ on acinclude.m4
the readdir test code on solaris does not have a large enough buffer
I fixed the problem with aclocal.m4.
Here is the patch
Jason
*** aclocal.m4.old Wed Oct 11 14:17:05 2000
--- aclocal.m4 Fri Oct 13 10:09:45 2000
***************
*** 65,71 ****
main() {
DIR *dir;
! char entry[sizeof(struct dirent)+257];
struct dirent *pentry = (struct dirent *) &entry;
dir = opendir("/");
--- 65,71 ----
main() {
DIR *dir;
! char entry[sizeof(struct dirent)+300];
struct dirent *pentry = (struct dirent *) &entry;
dir = opendir("/");