diff --git a/configure.ac b/configure.ac index 57fcc9bcd..165b391f7 100644 --- a/configure.ac +++ b/configure.ac @@ -765,6 +765,7 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) if test -z "$GCC"; then CFLAGS="$CFLAGS -Ae" fi + AC_DEFINE([BROKEN_GETLINE], [1], [getline is not what we expect]) ;; *-*-hpux11*) AC_DEFINE([PAM_SUN_CODEBASE], [1], diff --git a/openbsd-compat/bsd-getline.c b/openbsd-compat/bsd-getline.c index d676f4cef..e51bd7a13 100644 --- a/openbsd-compat/bsd-getline.c +++ b/openbsd-compat/bsd-getline.c @@ -39,7 +39,7 @@ #include "file.h" #endif -#if !HAVE_GETLINE +#if !defined(HAVE_GETLINE) || defined(BROKEN_GETLINE) #include #include #include