]> granicus.if.org Git - php/commitdiff
Fix the readdir_r POSIX check
authorSascha Schumann <sas@php.net>
Wed, 11 Oct 2000 14:35:45 +0000 (14:35 +0000)
committerSascha Schumann <sas@php.net>
Wed, 11 Oct 2000 14:35:45 +0000 (14:35 +0000)
acinclude.m4

index 3787964965999fa72609ad3c5c8e5ab691e974ab..05a440812b255150ad3897f874ad7c56322dbe09 100644 (file)
@@ -59,7 +59,7 @@ main() {
        dir = opendir("/");
        if (!dir) 
                exit(1);
-       if (readdir_r(dir, &entry, &pentry) == 0)
+       if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
                exit(0);
        exit(1);
 }