summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-06-24 14:09:21 +0000
committerjschauma <jschauma@pkgsrc.org>2003-06-24 14:09:21 +0000
commit0e81cc9882cebb42d5f9e71f05a2c522f023f9a8 (patch)
tree3f38173fa5ad2802db3c00b226fc4edf1e13c99a /pkgtools
parentccd31626e57bb5ee336d0dda1398b83a2623d1cc (diff)
downloadpkgsrc-0e81cc9882cebb42d5f9e71f05a2c522f023f9a8.tar.gz
Make pax compile on Irix by including pwcache.h, which now includes
forward declarations of the uid_from_user functions.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/files/pwcache.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/pwcache.h b/pkgtools/libnbcompat/files/pwcache.h
index 6052e9a7707..8c673c08b98 100644
--- a/pkgtools/libnbcompat/files/pwcache.h
+++ b/pkgtools/libnbcompat/files/pwcache.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pwcache.h,v 1.1.1.1 2003/03/31 05:02:59 grant Exp $ */
+/* $NetBSD: pwcache.h,v 1.2 2003/06/24 14:09:21 jschauma Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -74,3 +74,19 @@ typedef struct gidc {
char name[GNMLEN]; /* gid name */
gid_t gid; /* cached gid */
} GIDC;
+
+#ifndef HAVE_USER_FROM_UID
+const char *user_from_uid(uid_t, int);
+#endif
+
+#ifndef HAVE_GROUP_FROM_GID
+const char *group_from_gid(gid_t, int);
+#endif
+
+#ifndef HAVE_UID_FROM_USER
+int uid_from_user(const char *, uid_t *);
+#endif
+
+#ifndef HAVE_GID_FROM_GROUP
+int gid_from_group(const char *, gid_t *);
+#endif