Skip to content
Permalink
Browse files
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.
  • Loading branch information
daztucker committed Nov 6, 2021
1 parent 343ae25 commit 7a78fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -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>

0 comments on commit 7a78fe6

Please sign in to comment.