4.3.2 - problem with 'struct dirent' on SunOS 5.8/64 bit + gcc 3.2.1

From: Date: Thu, 07 Aug 2003 19:59:18 +0000
Subject: 4.3.2 - problem with 'struct dirent' on SunOS 5.8/64 bit + gcc 3.2.1
Groups: php.install 
Request: Send a blank email to php-install+get-11401@lists.php.net to get a copy of this message
In php-4.3.2/ext/session/mod_files.c, among other files, gcc stops on sizeof(struct dirent) because struct dirent hasn't been defined yet. If change all <dirent.h> includes to <sys/dirent.h> (which has the definition for struct dirent), things get much further, but readdir(3C) says to use <dirent.h>. I am not really sure what the most appropriate way to fix this is. 4.3.1 didn't have this problem and I can't quite pin down the subtlety that is making it an issue this time. I sort of suspect 64-bit #define goofiness, maybe related to the 64-bit fixes that were made to 4.3.2. Has anyone else run into this? -- _____________________________________________________________________ / Brian C. Hill bchill@bch.net http://brian.bch.net \ | Unix Specialist BCH Technical Services http://www.bch.net |

« previous php.install (#11401) next »