head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2014.11.13.10.53.49; author markd; state dead; branches; next 1.1; commitid cAGBpNg54OBrS0Yx; 1.1 date 2013.06.22.20.18.26; author jperkin; state Exp; branches; next ; commitid TMnJjDWr1PQomEUw; desc @@ 1.2 log @Update to KDE SC 4.14.3 @ text @$NetBSD: patch-dolphin_src_kitemviews_kfileitemmodelrolesupdater.cpp,v 1.1 2013/06/22 20:18:26 jperkin Exp $ Avoid non-portable dirent d_type on SunOS. --- dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp.orig 2013-05-03 04:36:32.006246684 +0000 +++ dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp @@@@ -1186,10 +1186,14 @@@@ int KFileItemModelRolesUpdater::subItems // If only directories are counted, consider an unknown file type and links also // as directory instead of trying to do an expensive stat() // (see bugs 292642 and 299997). +#ifdef __sun + const bool countEntry = !showFoldersOnly; +#else const bool countEntry = !showFoldersOnly || dirEntry->d_type == DT_DIR || dirEntry->d_type == DT_LNK || dirEntry->d_type == DT_UNKNOWN; +#endif if (countEntry) { ++count; } @ 1.1 log @Fix a REPLACE_INTERPRETER which cannot possibly have ever worked, fix a PKG_DEVELOPER check, and avoid non-portable dirent ops for SunOS. @ text @d1 1 a1 1 $NetBSD$ @