From 552b22f00b4f5ecb59c8ac05251d906374b568ee Mon Sep 17 00:00:00 2001 From: jschauma Date: Tue, 23 Sep 2003 02:03:36 +0000 Subject: Provide prototypes for setmode and getmode functions if necessary. This fixes build problems of mtree and pax on Irix. --- pkgtools/libnbcompat/files/nbcompat.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgtools') diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index 59af3b90f37..e1f15a30938 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -1,4 +1,4 @@ -/* $NetBSD: nbcompat.h,v 1.24 2003/09/16 16:48:25 grant Exp $ */ +/* $NetBSD: nbcompat.h,v 1.25 2003/09/23 02:03:36 jschauma Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -582,4 +582,12 @@ int gid_from_group(const char *, gid_t *); # define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */ #endif +#ifndef HAVE_SETMODE +void *setmode(const char *); +#endif + +#ifndef HAVE_GETMODE +mode_t getmode(const void *, mode_t); +#endif + #endif /* _NBCOMPAT_H */ -- cgit v1.2.3