mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
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
|
if test -z "$GCC"; then
|
||||||
CFLAGS="$CFLAGS -Ae"
|
CFLAGS="$CFLAGS -Ae"
|
||||||
fi
|
fi
|
||||||
|
AC_DEFINE([BROKEN_GETLINE], [1], [getline is not what we expect])
|
||||||
;;
|
;;
|
||||||
*-*-hpux11*)
|
*-*-hpux11*)
|
||||||
AC_DEFINE([PAM_SUN_CODEBASE], [1],
|
AC_DEFINE([PAM_SUN_CODEBASE], [1],
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "file.h"
|
#include "file.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_GETLINE
|
#if !defined(HAVE_GETLINE) || defined(BROKEN_GETLINE)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user