--- src/util.c.orig Tue Mar 7 06:23:06 2000 +++ src/util.c Thu Apr 20 03:00:00 2000 @@ -1,3 +1,4 @@ +#include "config.h" #include "gphoto.h" #include "util.h" #include @@ -9,10 +10,12 @@ #include #include #include -#include +#ifdef HAVE_DIRENT_H #include -#ifdef __FreeBSD__ #else +#include +#endif +#ifndef __FreeBSD__ #include #endif #ifdef linux