Skip getline() on HP-UX 10.x.

HP-UX 10.x has a getline() implementation in libc that does not behave
as we expect so don't use it.  With correction from Thorsten Glaser and
typo fix from Larkin Nickle.
This commit is contained in:
Darren Tucker 2021-11-06 21:07:03 +11:00
parent 343ae252eb
commit 7a78fe63b0
2 changed files with 2 additions and 1 deletions

View File

@ -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],

View File

@ -39,7 +39,7 @@
#include "file.h"
#endif
#if !HAVE_GETLINE
#if !defined(HAVE_GETLINE) || defined(BROKEN_GETLINE)
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>