mirror of git://anongit.mindrot.org/openssh.git
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:
parent
343ae252eb
commit
7a78fe63b0
|
@ -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],
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue