OSDN Git Service

configure / util: Auto-detect the availability of openpty()
authorThomas Huth <thuth@redhat.com>
Mon, 29 Jun 2020 12:13:24 +0000 (14:13 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 6 Jul 2020 05:37:02 +0000 (07:37 +0200)
commit9df8b20d1632d108da316134d4d86a00b4028803
tree8439f13b2b5ddbf3e01bbdd1a0245e341d317916
parent51b3ca97592964a0ece22f9df92592e0f80a78fe
configure / util: Auto-detect the availability of openpty()

Recent versions of Solaris (v11.4) now feature an openpty() function,
too, causing a build failure since we ship our own implementation of
openpty() for Solaris in util/qemu-openpty.c so far. Since there are
now both variants available in the wild, with and without this function
(and illumos is said to not have this function yet), let's introduce a
proper HAVE_OPENPTY define for this to fix the build failure.

Message-Id: <20200702143955.678-1-thuth@redhat.com>
Tested-by: Michele Denber <denber@mindspring.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure
util/qemu-openpty.c