]> granicus.if.org Git - php/commitdiff
Fix issue with Sun CC not detecting readdir_r
authorStanislav Malyshev <stas@php.net>
Thu, 2 Nov 2000 16:50:40 +0000 (16:50 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 2 Nov 2000 16:50:40 +0000 (16:50 +0000)
# This was once fixed in the code, but not in the configure

acinclude.m4

index c10e1b8a3cc615a0cf8d03f72304880405078c82..77fef3698873d3ce51e66e67da39a7d952cace9c 100644 (file)
@@ -57,7 +57,7 @@ AC_DEFUN(PHP_READDIR_R_TYPE,[
 
 main() {
        DIR *dir;
-       char entry[sizeof(struct dirent)+PATH_MAX];
+       char entry[sizeof(struct dirent)+PATH_MAX+1];
        struct dirent *pentry = (struct dirent *) &entry;
 
        dir = opendir("/");