mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Fix the fix as Sascha suggested.
This commit is contained in:
parent
cd7dae0676
commit
83b3818e67
@ -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("/");
|
||||
|
Loading…
Reference in New Issue
Block a user