diff options
| author | he <he@NetBSD.org> | 2005-03-31 12:56:49 +0000 |
|---|---|---|
| committer | he <he@NetBSD.org> | 2005-03-31 12:56:49 +0000 |
| commit | fca2c8bedd97d47b6c0007c734362f0395d121c8 (patch) | |
| tree | a5d41dd3600fd28812e24ecd1db5e3ac3c723471 /distrib/utils/libhack | |
| parent | 0ef0d9cbc7db8da0311052f17904ac175d9882b3 (diff) | |
Provide weak aliases for the newly added getpwuid_r() and getpwnam_r()
functions in order to fix link-time conflicts with the C library.
Diffstat (limited to 'distrib/utils/libhack')
| -rw-r--r-- | distrib/utils/libhack/getpwent.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/utils/libhack/getpwent.c b/distrib/utils/libhack/getpwent.c index dbb4aca7de5..5366bd667a7 100644 --- a/distrib/utils/libhack/getpwent.c +++ b/distrib/utils/libhack/getpwent.c @@ -1,4 +1,4 @@ -/* $NetBSD: getpwent.c,v 1.8 2005/03/31 04:14:42 christos Exp $ */ +/* $NetBSD: getpwent.c,v 1.9 2005/03/31 12:56:49 he Exp $ */ /* * Copyright (c) 1987, 1988, 1989, 1993, 1994, 1995 @@ -44,6 +44,8 @@ #define getpwnam _getpwnam #define setpwent _setpwent #define setpassent _setpassent +#define getpwuid_r _getpwuid_r +#define getpwnam_r _getpwnam_r __weak_alias(endpwent,_endpwent) __weak_alias(getpwent,_getpwent) @@ -51,6 +53,8 @@ __weak_alias(getpwuid,_getpwuid) __weak_alias(getpwnam,_getpwnam) __weak_alias(setpwent,_setpwent) __weak_alias(setpassent,_setpassent) +__weak_alias(getpwuid_r,_getpwuid_r) +__weak_alias(getpwnam_r,_getpwnam_r) #endif #include <sys/param.h> |
