summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index b0f9030c42..b999aff05c 100644
--- a/util.c
+++ b/util.c
@@ -186,6 +186,7 @@ ruby_strtoul(const char *str, char **endptr, int base)
#endif
+#ifndef HAVE_GNU_QSORT_R
/* mm.c */
#define mmtype long
@@ -452,6 +453,7 @@ ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void
else goto nxt; /* need not to sort both sides */
}
}
+#endif /* HAVE_GNU_QSORT_R */
char *
ruby_strdup(const char *str)