OpenSSH 3.9p1 includes.h patch

Tim Leamy tcleamy at ucdavis.edu
Tue Oct 26 09:04:07 EST 2004


Hello there,

  In the openssh 3.9p1 includes.h there is a workaround for HP-UX 11.11
which broke compiling on HP-UX 10.20 since it needs _INCLUDE__STDC__
defined.  Here's a patch for how I fixed it.

  It would be more elegant to do a "#ifdef __hpux11", but I don't have an
HP-UX 11 box to try it out.  So I'm not sure it would work.  But you might
want to try since I guess it would.

  Let me know if you need more details.

			Tim Leamy
			Computer Lab Management
			University of California at Davis
			tcleamy at ucdavis.edu
			http://clm.ucdavis.edu/


*** includes.h.orig	Mon Oct 25 15:27:12 2004
--- includes.h	Mon Oct 25 15:44:53 2004
***************
*** 184,191 ****
  /*
   * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
   * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
!  */
! #ifdef __hpux
  # ifdef _INCLUDE__STDC__
  #  undef _INCLUDE__STDC__
  # endif
--- 184,190 ----
  /*
   * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
   * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
! #if defined(__hpux) && ! defined(__hpux10)
  # ifdef _INCLUDE__STDC__
  #  undef _INCLUDE__STDC__
  # endif




More information about the openssh-unix-dev mailing list