Fix the fix as Sascha suggested.

This commit is contained in:
foobar 2000-10-15 00:58:29 +00:00
parent cd7dae0676
commit 83b3818e67

View File

@ -51,9 +51,13 @@ AC_DEFUN(PHP_READDIR_R_TYPE,[
#include <sys/types.h>
#include <dirent.h>
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
main() {
DIR *dir;
char entry[sizeof(struct dirent)+300];
char entry[sizeof(struct dirent)+PATH_MAX];
struct dirent *pentry = (struct dirent *) &entry;
dir = opendir("/");