Skip to content

Fix Linux compatibility: sarray qsort_r signature, uname detection, CRLF#40

Open
LilySu wants to merge 1 commit intozedshaw:masterfrom
LilySu:fix/linux-build-sarray-makefile-runtests
Open

Fix Linux compatibility: sarray qsort_r signature, uname detection, CRLF#40
LilySu wants to merge 1 commit intozedshaw:masterfrom
LilySu:fix/linux-build-sarray-makefile-runtests

Conversation

@LilySu
Copy link
Copy Markdown

@LilySu LilySu commented Feb 26, 2026

Fix Linux compatibility: sarray.c qsort_r signature and Makefile OS detection

  • Makefile: replace lsb_release -si/Ubuntu with uname -s/Linux for
    cross-distro compatibility (complements PR Makefile now works on multiple linux distributions #24)
  • sarray.c: add _GNU_SOURCE to expose qsort_r on glibc, fix argument
    order and fix parameter name thunk -> data

…ings

- Makefile: replace lsb_release -si/Ubuntu with uname -s/Linux for

  cross-distro compatibility (complements PR zedshaw#24)

- sarray.c: add _GNU_SOURCE to expose qsort_r on glibc, fix argument

  order (comparator before thunk), fix parameter name thunk -> data

- tests/runtests.sh: strip CRLF line endings that broke bash on WSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant