summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-09-23 02:03:36 +0000
committerjschauma <jschauma@pkgsrc.org>2003-09-23 02:03:36 +0000
commit552b22f00b4f5ecb59c8ac05251d906374b568ee (patch)
tree06ad8848311f888290b96025f820d783e468939e /pkgtools/libnbcompat
parenta8eb5971f3e3b71298bfbd1e0d50d781b2c5b799 (diff)
downloadpkgsrc-552b22f00b4f5ecb59c8ac05251d906374b568ee.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 */