patch: openssh 3.9p1 on hp-ux 10.20

Greg Wooledge wooledg at eeg.ccf.org
Sat Sep 18 00:18:37 EST 2004


OpenSSH 3.9p1 does not compile on HP-UX 10.20 due to the code which was
added in includes.h to work around HP-UX 11.11's behavior.  The following
patch lets it work on HP-UX 10.20.  It should also work on HP-UX 11.11,
but I can't test that (no HP-UX 11 boxes here).

It uses code from http://www.faqs.org/faqs/hp/hpux-faq/section-213.html .
The copyright at http://www.faqs.org/faqs/hp/hpux-faq/ is decidedly
not free, but I'm hoping the copyright holder will permit the code
to be used freely.  I've CC'ed him on this mail.

--- includes.h.orig	Fri Sep 17 10:03:08 2004
+++ includes.h	Fri Sep 17 09:52:03 2004
@@ -186,8 +186,20 @@
  * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
  */
 #ifdef __hpux
-# ifdef _INCLUDE__STDC__
-#  undef _INCLUDE__STDC__
+# include <sys/privgrp.h>
+# if defined(PRIV_PSET)
+#  define _hpux_11i
+# elif defined(PRIV_SPUCTL)
+#  define __hpux_11x
+# elif defined(PRIV_SERIALIZE)
+#  define __hpux_10x
+# elif defined(PRIV_SETRUGID)
+#  define __hpux_9x
+# endif
+# if defined(_hpux_11i) || defined(__hpux_11x)
+#  ifdef _INCLUDE__STDC__
+#   undef _INCLUDE__STDC__
+#  endif
 # endif
 #endif
 




More information about the openssh-unix-dev mailing list