Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat work around FreeBSD defining user_from_uid() in...
details: https://anonhg.NetBSD.org/src/rev/6b3a38cf2539
branches: trunk
changeset: 533536:6b3a38cf2539
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jul 03 17:17:04 2002 +0000
description:
work around FreeBSD defining user_from_uid() in stdlib.h
diffstat:
tools/compat/compat_pwd.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 322234f15d8c -r 6b3a38cf2539 tools/compat/compat_pwd.h
--- a/tools/compat/compat_pwd.h Wed Jul 03 17:16:26 2002 +0000
+++ b/tools/compat/compat_pwd.h Wed Jul 03 17:17:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_pwd.h,v 1.1 2002/01/29 10:20:32 tv Exp $ */
+/* $NetBSD: compat_pwd.h,v 1.2 2002/07/03 17:17:04 pooka Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -41,6 +41,11 @@
/* A very special version of <pwd.h> for pwd_mkdb(8) and __nbcompat_pwscan(3). */
+#if HAVE_USER_FROM_UID
+#define user_from_uid __nbcompat_system_user_from_uid
+#define group_from_gid __nbcompat_system_group_from_gid
+#endif
+
#include "../../include/pwd.h"
#define passwd __nbcompat_passwd
Home |
Main Index |
Thread Index |
Old Index