Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Protect new functions with #ifndef __LIBC12_SOURCE__...



details:   https://anonhg.NetBSD.org/src/rev/e7c82dd5b9a3
branches:  trunk
changeset: 769223:e7c82dd5b9a3
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 04 10:02:33 2011 +0000

description:
Protect new functions with #ifndef __LIBC12_SOURCE__ so that they are not
visibile in the libc12 compat environment.

diffstat:

 sys/sys/stat.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 6504be83288b -r e7c82dd5b9a3 sys/sys/stat.h
--- a/sys/sys/stat.h    Sat Sep 03 20:02:34 2011 +0000
+++ b/sys/sys/stat.h    Sun Sep 04 10:02:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stat.h,v 1.62 2011/08/17 07:25:30 manu Exp $   */
+/*     $NetBSD: stat.h,v 1.63 2011/09/04 10:02:33 christos Exp $       */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -240,6 +240,7 @@
 int    lchmod(const char *, mode_t);
 #endif /* defined(_NETBSD_SOURCE) */
 
+#ifndef __LIBC12_SOURCE__
 /*
  * X/Open Extended API set 2 (a.k.a. C063)
  */
@@ -249,6 +250,7 @@
 #endif
 
 int futimens(int, const struct timespec *);
+#endif
 
 __END_DECLS
 



Home | Main Index | Thread Index | Old Index