]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix strnvis() and strnunvis() NetBSD ABI break
authorGuillem Jover <guillem@hadrons.org>
Tue, 22 May 2018 11:50:44 +0000 (13:50 +0200)
committerGuillem Jover <guillem@hadrons.org>
Tue, 22 May 2018 14:07:42 +0000 (16:07 +0200)
commite4e15ed286f7739682737ec2ca6d681dbdd00e79
tree19b8c6b42113b3e571cd0d759da1908dcdc1dc52
parentbf697b900c06140a6ff6d00e22a812c46144bed1
Fix strnvis() and strnunvis() NetBSD ABI break

The NetBSD implementations have different prototypes to the ones coming
from OpenBSD, which will break builds, and have caused segfaults at
run-time. We provide now both interfaces with different prototypes as
different version nodes allow selecting them at compile-time, defaulting
for now to the OpenBSD one to avoid build-time breakage, while emitting
a compile-time warning. Later on, in 0.10.0, we will be switching the
compile-time default to the NetBSD version.

Ref: http://gnats.netbsd.org/44977
Fixes: https://bugs.debian.org/899282
include/bsd/vis.h
src/libbsd.map
src/unvis.c
src/vis.c
test/.gitignore
test/Makefile.am
test/vis-openbsd.c [new file with mode: 0644]
test/vis.c [new file with mode: 0644]