--- sql/pgsql/libltdl/ltdl.c 2003/01/13 15:50:03 1.2 +++ sql/pgsql/libltdl/ltdl.c 2003/01/14 17:13:47 1.3 @@ -25,9 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite */ -#if HAVE_CONFIG_H -# include -#endif +#include "config.h" #if HAVE_UNISTD_H # include @@ -65,6 +63,7 @@ Foundation, Inc., 59 Temple Place, Suite # include #endif +#ifdef HAVE_CONFIG_H #if HAVE_DIRENT_H # include # define LT_D_NAMLEN(dirent) (strlen((dirent)->d_name)) @@ -81,6 +80,7 @@ Foundation, Inc., 59 Temple Place, Suite # include # endif #endif +#endif #if HAVE_ARGZ_H # include