Introduce _NETBSD_TOOLS for symbols the are needed in tools build

This commit is contained in:
christos 2007-10-18 02:23:37 +00:00
parent 04e2d29955
commit 6c18907891
4 changed files with 9 additions and 9 deletions

View File

@ -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 **);

View File

@ -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);

View File

@ -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 <strings.h> /* for backwards-compatibilty */
void *memmem(const void *, size_t, const void *, size_t);
char *strcasestr(const char *, const char *);

View File

@ -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 */