freebsd-ports/ftp/pftpd/files/patch-plib-support.c
Jean-Yves Lefort 4cd3b4e8d1 - Update to 1.0.1
- Add a mirror site, since the primary site is temporarily unreachable
- Remove RESTRICTED, as the license now allows redistribution

PR:		ports/81411
Submitted by:	Johan van Selst <johans@stack.nl>
2005-05-25 07:35:19 +00:00

18 lines
405 B
C

--- plib/support.c.orig Thu Jan 9 14:25:01 2003
+++ plib/support.c Mon May 23 20:46:01 2005
@@ -145,6 +145,15 @@
pthread_mutex_init(&pwd_lock, NULL);
}
+static pthread_mutex_t grp_lock;
+static pthread_once_t grp_once = PTHREAD_ONCE_INIT;
+
+static void
+grp_lock_init(void)
+{
+ pthread_mutex_init(&grp_lock, NULL);
+}
+
static char *
strcopy(const char *str, char **buf, size_t *avail)
{