aboutsummaryrefslogtreecommitdiffstats
path: root/devel/linuxthreads/files/getpw_r.c
diff options
context:
space:
mode:
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 5dd44e958ba..246a4479a9e 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