From cdb346c65eeb9f976cf3db21b3cb2f7d8837cf6b Mon Sep 17 00:00:00 2001 From: Danny Wilson Date: Sat, 7 Nov 2015 04:51:33 +0100 Subject: Fix build on Solaris d_type is not part of the POSIX spec unfortunately. --- src/libutil/util.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 038838820899..2edc5344fdc1 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -11,6 +11,12 @@ #include +#ifndef HAVE_STRUCT_DIRENT_D_TYPE +#define DT_UNKNOWN 0 +#define DT_REG 1 +#define DT_LNK 2 +#define DT_DIR 3 +#endif namespace nix { -- cgit 1.4.1