Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Wrap utimensat() only if present on host



details:   https://anonhg.NetBSD.org/src/rev/f0c65cf41607
branches:  trunk
changeset: 336533:f0c65cf41607
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Mar 05 00:26:17 2015 +0000

description:
Wrap utimensat() only if present on host

fixes buildrump.sh on NetBSD 6.1.5

diffstat:

 lib/librumphijack/hijack.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 3c64bad59f8b -r f0c65cf41607 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Thu Mar 05 00:25:39 2015 +0000
+++ b/lib/librumphijack/hijack.c        Thu Mar 05 00:26:17 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.115 2015/03/04 23:42:26 pooka Exp $      */
+/*      $NetBSD: hijack.c,v 1.116 2015/03/05 00:26:17 pooka Exp $      */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -34,7 +34,7 @@
 #include <rump/rumpuser_port.h>
 
 #if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.115 2015/03/04 23:42:26 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.116 2015/03/05 00:26:17 pooka Exp $");
 #endif
 
 #include <sys/param.h>
@@ -2265,10 +2265,12 @@
  * Rest are std type calls.
  */
 
+#ifdef HAVE_UTIMENSAT
 ATCALL(int, utimensat, DUALCALL_UTIMENSAT,                             \
        (int fd, const char *path, const struct timespec t[2], int f),  \
        (int, const char *, const struct timespec [2], int),
        (fd, path, t, f))
+#endif
 
 FDCALL(int, bind, DUALCALL_BIND,                                       \
        (int fd, const struct sockaddr *name, socklen_t namelen),       \



Home | Main Index | Thread Index | Old Index