about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-05T13·05+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-05T13·05+0100
commit9a4706eb197dd28abec3da3ce0a48f3756ea8975 (patch)
tree73b0debe1d850930f657031701bac1a9a6626b69 /src/libutil/util.cc
parent14080f3e4b9e7c45754b9750424250cadcc066e1 (diff)
Fix compilation
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index c1585e27ea1f..16d32967bb35 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -232,7 +232,13 @@ DirEntries readDirectory(const Path & path)
         checkInterrupt();
         string name = dirent->d_name;
         if (name == "." || name == "..") continue;
-        entries.emplace_back(name, dirent->d_ino, #ifdef HAVE_STRUCT_DIRENT_D_TYPE dirent->d_type #else DT_UNKNOWN #endif);
+        entries.emplace_back(name, dirent->d_ino,
+#ifdef HAVE_STRUCT_DIRENT_D_TYPE
+            dirent->d_type
+#else
+            DT_UNKNOWN
+#endif
+        );
     }
     if (errno) throw SysError(format("reading directory ‘%1%’") % path);