1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-19 07:52:23 +01:00

Modify the PAM headers test in configure.ac to #include <sys/types.h>.

This is required to compile conftest.c for pam_modutil.h on Gentoo with
  sys-libs/pam-1.1.5
  sys-libs/glibc-2.13-r4
  sys-devel/gcc-4.5.3-r2
This commit is contained in:
James Dingwall 2012-03-27 13:36:11 +01:00
parent 439133350d
commit 940149ca98

View File

@ -39,7 +39,8 @@ AC_PROG_LIBTOOL
AC_CHECK_HEADERS([security/pam_appl.h], [],
[AC_MSG_ERROR([[PAM header files not found, install libpam-dev.]])])
AC_CHECK_HEADERS([security/pam_modules.h security/_pam_macros.h security/pam_modutil.h], [], [],
[#include <security/pam_appl.h>])
[#include <sys/types.h>
#include <security/pam_appl.h>])
AC_CHECK_LIB([pam], [pam_start])