summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/setgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/setgroups.c')
-rw-r--r--otherlibs/unix/setgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/setgroups.c b/otherlibs/unix/setgroups.c
index 026c67632..2279a6b36 100644
--- a/otherlibs/unix/setgroups.c
+++ b/otherlibs/unix/setgroups.c
@@ -33,7 +33,7 @@ CAMLprim value unix_setgroups(value groups)
int n;
size = Wosize_val(groups);
- gidset = (gid_t *) stat_alloc(size * sizeof(gid_t));
+ gidset = (gid_t *) caml_stat_alloc(size * sizeof(gid_t));
for (i = 0; i < size; i++) gidset[i] = Int_val(Field(groups, i));
n = setgroups(size, gidset);