summaryrefslogtreecommitdiff
path: root/ftp/pftpd/files/patch-plib-support.c
blob: 84dfabce5dbae11bb12d68f7280805177f0232d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- plib/support.c.orig	Thu Jan  9 22:25:01 2003
+++ plib/support.c	Wed Apr  6 00:38:41 2005
@@ -369,11 +369,13 @@
     return code;
     
 #else
+    pthread_once_t grp_once;
+    pthread_mutex_t grp_lock;
     struct group *gp;
     int i, len;
 
     
-    pthread_once(&grp_once, grp_lock_init);
+    pthread_once(&grp_once, NULL);
     pthread_mutex_lock(&grp_lock);
 
     gp = getgrgid(gid);
@@ -452,11 +454,13 @@
     return code;
     
 #else
+    pthread_once_t grp_once;
+    pthread_mutex_t grp_lock;
     struct group *gp;
     int i, len;
 
     
-    pthread_once(&grp_once, grp_lock_init);
+    pthread_once(&grp_once, NULL);
     pthread_mutex_lock(&grp_lock);
 
     gp = getgrnam(name);