Commit Graph

9 Commits (44994a46d4a353bf4596b40a8720e22afe12699e)

Author SHA1 Message Date
Ariadne Conill 44994a46d4 portability: check for qsort_r which does not match POSIX-next definition
FreeBSD (and also Darwin) introduced its own qsort_r, which has different
semantics than the one slated for inclusion in POSIX.  Add a portability
thunk to deal with translating between implementations.

[TT: minor stylistic fixes]
2022-04-11 09:35:47 +03:00
Timo Teräs 925b435faf portability: add qsort_r 2022-03-21 14:09:06 +02:00
Daniel Kolesa 9d6c96324a portability, fetch: drop static_deps dependencies
This is not actually needed, and it results in both static and
shared versions of zlib and openssl linked into libapk otherwise,
which is bad.
2022-03-07 13:04:05 +01:00
Ariadne Conill dd1908f2fc portability: add sys/sysmacros.h wrapper for makedev/major/minor 2021-12-29 20:14:41 +02:00
Ariadne Conill 837d2fd915 portability: include environ in overlaid unistd.h 2021-12-29 20:14:41 +02:00
Ariadne Conill e6b1b29028 portability: implement pipe2 and mknodat 2021-12-29 20:14:41 +02:00
Ariadne Conill 2c3cef8787 portability: take over strlcpy 2021-12-29 20:14:41 +02:00
Ariadne Conill cbdc4e9f25 portability: add endian.h wrapper 2021-12-29 20:14:38 +02:00
Ariadne Conill a7a0c0a6ca portability: implement skeleton with memrchr function 2021-12-29 20:11:17 +02:00