summaryrefslogtreecommitdiff
path: root/cb
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2018-10-25 19:58:51 +0200
committerSven Eden <sven.eden@prydeworx.com>2018-11-08 08:02:57 +0100
commitcde7d9c8b5adaa8f7a05c4e32b60668da4499525 (patch)
tree1f82290a28540e4025085eb6f74127ed29655f1d /cb
parent3bc7e320b47d360d54e77cda02a0f6aeae7bce19 (diff)
Prep v240: Add check for qsort_r() and the function if not provided.
As elogind supports musl-libc, we have to remedy the situation that upstream decided to make use of qsort_r(). This function is not provided by musl-libc, so we have to provide an own variant. The variant is an adaption of the qsort_r() algorithm found in glibc-2.28, the disclaimer from their source files have been added. Bug: #83 Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Diffstat (limited to 'cb')
-rw-r--r--cb/elogind.cbp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cb/elogind.cbp b/cb/elogind.cbp
index a005d7eda..7f2dd6687 100644
--- a/cb/elogind.cbp
+++ b/cb/elogind.cbp
@@ -862,6 +862,10 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/shared/output-mode.h" />
+ <Unit filename="../src/shared/qsort_r_missing.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/shared/qsort_r_missing.h" />
<Unit filename="../src/shared/sleep-config.c">
<Option compilerVar="CC" />
</Unit>