$NetBSD: patch-src_conf.c,v 1.5 2016/04/15 08:47:50 wiz Exp $ * SunOS has no dirent d_type --- src/conf.c.orig 2015-11-09 07:39:18.000000000 +0000 +++ src/conf.c @@ -3419,11 +3419,19 @@ static int snd_config_hooks(snd_config_t static int config_filename_filter(const struct dirent *dirent) { +#ifdef __sun + struct stat s; +#endif size_t flen; if (dirent == NULL) return 0; +#ifdef __sun + stat(dirent->d_name, &s); + if (s.st_mode & S_IFDIR) +#else if (dirent->d_type == DT_DIR) +#endif return 0; flen = strlen(dirent->d_name);