Subject: HPUX mods for 3/12/93 sam

From: Ed Kubaitis - CCSO <[email-masked]>
Date: Mon, 15 Mar 1993 09:36:06 -0500

Attached are patches for 3/12 sam on HPUX 8.07.

Ed
===============================================================================
*** libXg/gwin.c-	Mon Mar 15 07:06:06 1993
--- libXg/gwin.c	Mon Mar 15 07:18:06 1993
***************
*** 1,6 ****
  /* Copyright (c) 1992 AT&T - All rights reserved. */
  #include <stdio.h>
! #ifdef	v10
  typedef	char*	caddr_t;
  #endif
  #include <X11/Xos.h>
--- 1,6 ----
  /* Copyright (c) 1992 AT&T - All rights reserved. */
  #include <stdio.h>
! #if defined(v10) || defined(HPUX)
  typedef	char*	caddr_t;
  #endif
  #include <X11/Xos.h>
*** sam/B.sh-	Mon Mar 15 07:05:22 1993
--- sam/B.sh	Mon Mar 15 08:19:31 1993
***************
*** 9,14 ****
--- 9,17 ----
  fi
  
  dir=`/bin/pwd`
+ if [ "$USER" = "" ]; then
+ 	USER=$LOGNAME
+ fi
  pipe=/tmp/.sam.$USER
  
  if [ $DISPLAY != "" ]; then
*** samterm/unix.c-	Mon Mar 15 07:05:57 1993
--- samterm/unix.c	Mon Mar 15 08:23:37 1993
***************
*** 15,20 ****
--- 15,25 ----
  #define S_IFIFO	_IFIFO
  #endif
  
+ #ifdef	HPUX
+ #define S_IFMT	_S_IFMT
+ #define S_IFIFO	_S_IFIFO
+ #endif
+ 
  #if	defined(UMIPS) || defined(SUNOS)
  #define	atexit(p)		/* sigh */
  #endif