From 6c189078917dca7e5b2c21f11720a8ecc3ee956f Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 18 Oct 2007 02:23:37 +0000 Subject: [PATCH] Introduce _NETBSD_TOOLS for symbols the are needed in tools build --- include/grp.h | 4 ++-- include/pwd.h | 4 ++-- include/string.h | 4 ++-- sys/sys/stat.h | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/grp.h b/include/grp.h index c9e94166171a..1ca29ea64b1c 100644 --- a/include/grp.h +++ b/include/grp.h @@ -1,4 +1,4 @@ -/* $NetBSD: grp.h,v 1.22 2005/05/24 17:36:29 kleink Exp $ */ +/* $NetBSD: grp.h,v 1.23 2007/10/18 02:23:37 christos Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -69,7 +69,7 @@ struct group *getgrent(void); void setgrent(void); void endgrent(void); #endif -#if defined(_NETBSD_SOURCE) +#if defined(_NETBSD_SOURCE) || defined(_NETBSD_TOOLS) void setgrfile(const char *); int setgroupent(int); int getgrent_r(struct group *, char *, size_t, struct group **); diff --git a/include/pwd.h b/include/pwd.h index 372c3bf84695..7c28109b3a1c 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -1,4 +1,4 @@ -/* $NetBSD: pwd.h,v 1.39 2005/05/24 17:36:29 kleink Exp $ */ +/* $NetBSD: pwd.h,v 1.40 2007/10/18 02:23:37 christos Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -132,7 +132,7 @@ struct passwd *getpwent(void); void setpwent(void); void endpwent(void); #endif -#if defined(_NETBSD_SOURCE) +#if defined(_NETBSD_SOURCE) || defined(_NETBSD_TOOLS) int pw_gensalt(char *, size_t, const char *, const char *); int pw_scan(char *, struct passwd *, int *); int setpassent(int); diff --git a/include/string.h b/include/string.h index 34b4ee61d2aa..741acab7dff1 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.33 2007/08/02 21:49:10 kristerw Exp $ */ +/* $NetBSD: string.h,v 1.34 2007/10/18 02:23:37 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -79,7 +79,7 @@ void *memccpy(void *, const void *, int, size_t); char *strdup(const char *); #endif -#if defined(_NETBSD_SOURCE) +#if defined(_NETBSD_SOURCE) || defined(_NETBSD_TOOLS) #include /* for backwards-compatibilty */ void *memmem(const void *, size_t, const void *, size_t); char *strcasestr(const char *, const char *); diff --git a/sys/sys/stat.h b/sys/sys/stat.h index fd384032e60f..be571b25a3dc 100644 --- a/sys/sys/stat.h +++ b/sys/sys/stat.h @@ -1,4 +1,4 @@ -/* $NetBSD: stat.h,v 1.54 2006/02/24 22:01:30 thorpej Exp $ */ +/* $NetBSD: stat.h,v 1.55 2007/10/18 02:25:03 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -245,12 +245,12 @@ int lstat(const char *, struct stat *) __RENAME(__lstat30); int mknod(const char *, mode_t, dev_t); #endif /* defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) */ -#if defined(_NETBSD_SOURCE) +#if defined(_NETBSD_SOURCE) || defined(_NETBSD_TOOLS) int chflags(const char *, unsigned long); int fchflags(int, unsigned long); int lchflags(const char *, unsigned long); int lchmod(const char *, mode_t); -#endif /* defined(_NETBSD_SOURCE) */ +#endif /* defined(_NETBSD_SOURCE) || defined(_NETBSD_TOOLS) */ __END_DECLS #endif /* !_KERNEL && !_STANDALONE */