Skip to content

Commit f70bc95

Browse files
keith-packardmbolivar-nordic
authored andcommitted
tests/c_lib: Set _GNU_SOURCE for qsort_r test
qsort_r is a GNU addition, so we need to #define _GNU_SOURCE to ensure the prototype is defined in the header file. Signed-off-by: Keith Packard <[email protected]>
1 parent a2505db commit f70bc95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/lib/c_lib/src/test_qsort.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#define _GNU_SOURCE
78
#include <stdbool.h>
89
#include <stdlib.h>
910
#include <ztest.h>

0 commit comments

Comments
 (0)