]> granicus.if.org Git - php/commitdiff
Some systems don't have dirent.h. Wrap include appropiately.
authorSascha Schumann <sas@php.net>
Tue, 23 May 2000 15:15:48 +0000 (15:15 +0000)
committerSascha Schumann <sas@php.net>
Tue, 23 May 2000 15:15:48 +0000 (15:15 +0000)
main/php_reentrancy.h

index 0cba46e8960cd92f6e4a7712af0d55f8cc55e9df..6b637879e20597d44e44c94953ff4c638d14eae7 100644 (file)
@@ -23,7 +23,9 @@
 #include "php.h"
 
 #include <sys/types.h>
+#ifdef HAVE_DIRENT_H
 #include <dirent.h>
+#endif
 #include <time.h>
 
 /* currently, PHP does not check for these functions, but assumes