aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-11 13:33:27 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-11 13:33:27 +0000
commit916fff3b6133b16118ccedad56d993e8579ce867 (patch)
treee17658d0c5b611bb4816253690b888dd198cc1bc /file.c
parent4883d1255266e85e9f8dd5e12ad671fd169a5b31 (diff)
downloadruby-916fff3b6133b16118ccedad56d993e8579ce867.tar.gz
* file.c (HAVE_UTIMENSAT): disabled for NativeClient.
Fixes build error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/file.c b/file.c
index 3a960d7c93..c9b062e4df 100644
--- a/file.c
+++ b/file.c
@@ -64,10 +64,14 @@ int flock(int, int);
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(__native_client__) && defined(NACL_NEWLIB)
-# include "nacl/utime.h"
-# include "nacl/stat.h"
-# include "nacl/unistd.h"
+#if defined(__native_client__)
+# if defined(NACL_NEWLIB)
+# include "nacl/utime.h"
+# include "nacl/stat.h"
+# include "nacl/unistd.h"
+# else
+# undef HAVE_UTIMENSAT
+# endif
#endif
#ifdef HAVE_SYS_MKDEV_H
@@ -2538,7 +2542,7 @@ utime_internal(const char *path, VALUE pathv, void *arg)
const struct timespec *tsp = v->tsp;
struct timeval tvbuf[2], *tvp = NULL;
-#ifdef HAVE_UTIMENSAT
+#if defined(HAVE_UTIMENSAT)
static int try_utimensat = 1;
if (try_utimensat) {