Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen add check for HAVE_USER_FROM_UID
details: https://anonhg.NetBSD.org/src/rev/b15c6a98cd3d
branches: trunk
changeset: 533537:b15c6a98cd3d
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jul 03 17:17:35 2002 +0000
description:
add check for HAVE_USER_FROM_UID
diffstat:
lib/libc/gen/pwcache.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 6b3a38cf2539 -r b15c6a98cd3d lib/libc/gen/pwcache.c
--- a/lib/libc/gen/pwcache.c Wed Jul 03 17:17:04 2002 +0000
+++ b/lib/libc/gen/pwcache.c Wed Jul 03 17:17:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pwcache.c,v 1.21 2002/02/26 22:29:40 tv Exp $ */
+/* $NetBSD: pwcache.c,v 1.22 2002/07/03 17:17:35 pooka Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -75,7 +75,7 @@
#if 0
static char sccsid[] = "@(#)cache.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pwcache.c,v 1.21 2002/02/26 22:29:40 tv Exp $");
+__RCSID("$NetBSD: pwcache.c,v 1.22 2002/07/03 17:17:35 pooka Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -244,6 +244,7 @@
return (0);
}
+#if !HAVE_USER_FROM_UID
/*
* user_from_uid()
* caches the name (if any) for the uid. If noname clear, we always
@@ -383,6 +384,7 @@
}
return (ptr->name);
}
+#endif /* HAVE_USER_FROM_UID */
/*
* uid_from_user()
Home |
Main Index |
Thread Index |
Old Index