#if HAVE_CONFIG_H # include #endif #include #if HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # if HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # if HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # if HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ #ifndef HAVE_DECL_DIRFD "this configure-time declaration test was not run" #endif #if !HAVE_DECL_DIRFD && !defined dirfd int dirfd (DIR const *); #endif