From f63120be78acf87fd4f5f9a494e86474445ac119 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 Mar 2011 20:07:18 +0000 Subject: [PATCH] Fix solaris build --- src/node_file.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node_file.cc b/src/node_file.cc index e4d00af073e..7889597f0f4 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -910,12 +910,17 @@ static Handle FUTimes(const Arguments& args) { if (args[3]->IsFunction()) { ASYNC_CALL(futime, args[3], fd, atime, mtime); } else { +#ifdef __sun + // Solaris does not have futimes + return ThrowException(ErrnoException(ENOSYS, "futimes", "", 0)); +#else timeval times[2]; ToTimevals(atime, mtime, times); if (futimes(fd, times) == -1) { return ThrowException(ErrnoException(errno, "futimes", "", 0)); } +#endif //__sun } return Undefined();