configure: use AC_USE_SYSTEM_EXTENSIONS

On glibc, posix_openpt requires _XOPEN_SOURCE >= 600


Gbp-Pq: Name luit-system-extensions.diff
This commit is contained in:
Julien Cristau 2022-05-14 03:19:12 +08:00 committed by openKylinBot
parent 1a55c82cd5
commit ef101771ea
1 changed files with 1 additions and 1 deletions

View File

@ -30,13 +30,13 @@ AM_MAINTAINER_MODE
m4_ifndef([XORG_MACROS_VERSION],
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
XORG_MACROS_VERSION(1.8)
AC_USE_SYSTEM_EXTENSIONS
XORG_DEFAULT_OPTIONS
AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_HOST
AC_CHECK_HEADERS([pty.h stropts.h sys/param.h sys/select.h])
AC_CHECK_FUNCS([select grantpt posix_openpt])