From 57583a789f0e16b916061cd7066bbf156e728986 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Nov 2014 15:00:00 -0800 Subject: init isn't built for platforms without dirent::d_type. Change-Id: Icd4b431576f2ba619ff4ae6fb871bb0210d3b2f2 --- init/property_service.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/init/property_service.c b/init/property_service.c index 1902b77..d908ba8 100644 --- a/init/property_service.c +++ b/init/property_service.c @@ -448,10 +448,8 @@ static void load_persistent_properties() while ((entry = readdir(dir)) != NULL) { if (strncmp("persist.", entry->d_name, strlen("persist."))) continue; -#if HAVE_DIRENT_D_TYPE if (entry->d_type != DT_REG) continue; -#endif /* open the file and read the property value */ fd = openat(dir_fd, entry->d_name, O_RDONLY | O_NOFOLLOW); if (fd < 0) { -- cgit v1.1