Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 75237ed

Browse files
enh-googleGerrit Code Review
authored andcommitted
Merge "Add qsort_r to the POSIX header tests." into main
2 parents 3f8d890 + 534702c commit 75237ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/headers/posix/stdlib_h.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ static void stdlib_h() {
112112
FUNCTION(ptsname, char* (*f)(int));
113113
FUNCTION(putenv, int (*f)(char*));
114114
FUNCTION(qsort, void (*f)(void*, size_t, size_t, int (*)(const void*, const void*)));
115+
#if !defined(__GLIBC__) // Our glibc is too old.
116+
FUNCTION(qsort_r, void (*f)(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*));
117+
#endif
115118
FUNCTION(rand, int (*f)(void));
116119
FUNCTION(rand_r, int (*f)(unsigned*));
117120
FUNCTION(random, long (*f)(void));

0 commit comments

Comments
 (0)