summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-09-23 02:03:36 +0000
committerjschauma <jschauma>2003-09-23 02:03:36 +0000
commit04142d8f4edd55e9d94bc0d888d6fde834a077cc (patch)
tree06ad8848311f888290b96025f820d783e468939e /pkgtools/libnbcompat
parentf21727dc418c8eb702de036523d85b19eaf91f2a (diff)
downloadpkgsrc-04142d8f4edd55e9d94bc0d888d6fde834a077cc.tar.gz
Provide prototypes for setmode and getmode functions if necessary.
This fixes build problems of mtree and pax on Irix.
Diffstat (limited to 'pkgtools/libnbcompat')
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h10
1 files changed, 9 insertions, 1 deletions
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 */