diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-07 15:39:57 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-07 15:39:57 +0000 |
commit | d13b044d59619a52277c229eb37d38265690fb64 (patch) | |
tree | 89429e47360307453a0e48e86a1be6278889d93b /have/Makefile | |
parent | ddbcd3c13f2159113bb7e9921a1bec13755c5d43 (diff) |
address the strnvis(3) portability fiasco
strnvis originates on OpenBSD. When NetBSD added it to their libc
they decided to swap the argument. Without starting a holy war on
the "best" argument order, adding an implementation of a function
that's widely available and making its signature purposefully
incompatible is beyond justification. FreeBSD (and so macos too?)
followed NetBSD in this, so we end up with *two* major and incompatible
strnvis implementations. libbsd is in a limbo, they started with
the OpenBSD version but they'll probably switch to the NetBSD version
in the future.
That's why we can't have nice things.
Do the right thing(tm) and check for the presence of the original
strnvis(3), if not available or broken use the bundled one.
Diffstat (limited to 'have/Makefile')
-rw-r--r-- | have/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/have/Makefile b/have/Makefile index ee214d5..9fd19e8 100644 --- a/have/Makefile +++ b/have/Makefile @@ -24,7 +24,8 @@ DISTFILES = Makefile \ strlcpy.c \ strtonum.c \ tree_h.c \ - vasprintf.c + vasprintf.c \ + vis.c all: false |