aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--file.c14
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7fb0364b1b..26b1d82514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 11 22:29:40 2014 Yuki Yugui Sonoda <yugui@yugui.jp>
+
+ * file.c (HAVE_UTIMENSAT): disabled for NativeClient.
+ Fixes build error.
+
Sat Oct 11 22:11:58 2014 Yuki Yugui Sonoda <yugui@yugui.jp>
* ext/extmk.rb: generates the rule for extinit.$(OBJEXT).
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) {