summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/getpw_r.c
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2003-07-14 12:15:03 +0000
committerTor Egge <tegge@FreeBSD.org>2003-07-14 12:15:03 +0000
commit909179ec64f7e98ec2306d76d1c6e353b3f83d93 (patch)
tree4b256d490ae50dd17e2cfc4aa53a6f3620074496 /devel/linuxthreads/files/getpw_r.c
parentUpgrade to 0.8.1. (diff)
Restore gethostbyaddr_r wrapper and remove getpw{nam,uid}_r wrappers for
newer versions of FreeBSD 5.X. Drop use of deprecated AINC variable. Reenable use of ld(1) to restore the LINUXTHREADS_WRAP_API option. Rename __thread to __xthread in prototypes to avoid conflict with new gcc keyword. Bump port revision.
Notes
Notes: svn path=/head/; revision=84875
Diffstat (limited to 'devel/linuxthreads/files/getpw_r.c')
-rw-r--r--devel/linuxthreads/files/getpw_r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/devel/linuxthreads/files/getpw_r.c b/devel/linuxthreads/files/getpw_r.c
index 5dd44e958ba5..246a4479a9e7 100644
--- a/devel/linuxthreads/files/getpw_r.c
+++ b/devel/linuxthreads/files/getpw_r.c
@@ -2,8 +2,10 @@
#include <string.h>
#include <errno.h>
#include <pwd.h>
+#include <osreldate.h>
#include "pthread.h"
+#if __FreeBSD_version < 500112
static pthread_mutex_t getpw_mutex = PTHREAD_MUTEX_INITIALIZER;
static int
@@ -106,3 +108,4 @@ int getpwuid_r (uid_t uid, struct passwd *result,
pthread_mutex_unlock (&getpw_mutex);
return retval;
}
+#endif