Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/../.rbenv/sources/3.0.4/ruby-3.0.4/util.c b/util.c
- index 8ec0cd6..d1869f0 100644
- --- a/../.rbenv/sources/3.0.4/ruby-3.0.4/util.c
- +++ b/util.c
- @@ -198,19 +198,12 @@ ruby_strtoul(const char *str, char **endptr, int base)
- return ret;
- }
- }
- -
- +#if !defined HAVE_GNU_QSORT_R
- #include <sys/types.h>
- -#include <sys/stat.h>
- +#include <stdint.h>
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- -#if defined(HAVE_FCNTL_H)
- -#include <fcntl.h>
- -#endif
- -
- -#ifndef S_ISDIR
- -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
- -#endif
- typedef int (cmpfunc_t)(const void*, const void*, void*);
- @@ -259,7 +252,7 @@ ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void
- qsort_s(base, nel, size, cmp, d);
- }
- # define HAVE_GNU_QSORT_R 1
- -#elif !defined HAVE_GNU_QSORT_R
- +#else
- /* mm.c */
- #define mmtype long
- @@ -525,6 +518,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
- #endif /* HAVE_GNU_QSORT_R */
- char *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement