Source-Changes-HG archive

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

[src/trunk]: src/sys/sys don't provide these prototypes for standalone progra...



details:   https://anonhg.NetBSD.org/src/rev/02ec485164b7
branches:  trunk
changeset: 481631:02ec485164b7
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Feb 03 02:01:53 2000 +0000

description:
don't provide these prototypes for standalone programs (as noted by
_STANDALONE):

* most of them are absolutely irrelevant, and not provided in a standalone
  environment!

* those which are relevant and provided (stat() and fstat()) shouldn't be
  __RENAME()d in the standalone environment.

diffstat:

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

diffs (25 lines):

diff -r bd9b9b84f906 -r 02ec485164b7 sys/sys/stat.h
--- a/sys/sys/stat.h    Thu Feb 03 02:00:31 2000 +0000
+++ b/sys/sys/stat.h    Thu Feb 03 02:01:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stat.h,v 1.38 1999/08/03 18:32:03 wrstuden Exp $       */
+/*     $NetBSD: stat.h,v 1.39 2000/02/03 02:01:53 cgd Exp $    */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -257,7 +257,7 @@
 #endif /* _KERNEL */
 #endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */
 
-#ifndef _KERNEL
+#if !defined(_KERNEL) && !defined(_STANDALONE)
 #include <sys/cdefs.h>
 
 __BEGIN_DECLS
@@ -292,5 +292,5 @@
 #endif /* !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) */
 __END_DECLS
 
-#endif /* !_KERNEL */
+#endif /* !_KERNEL && !_STANDALONE */
 #endif /* !_SYS_STAT_H_ */



Home | Main Index | Thread Index | Old Index