[10595] in Athena Bugs

home help back first fref pref prev next nref lref last post

athena/ucb/lpr/lp.local.h

daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Fri Jun 25 12:57:59 1993

From: brlewis@Athena.MIT.EDU
Date: Fri, 25 Jun 93 12:57:55 -0400
To: rel-eng@Athena.MIT.EDU, bugs@Athena.MIT.EDU

This still won't catch all the different kinds of files under hpux that
you aren't supposed to try to print out, but it's good enough.

*** /tmp/,RCSt1a18626	Fri Jun 25 12:56:21 1993
--- athena/ucb/lpr/lp.local.h	Fri Jun  4 16:17:52 1993
***************
*** 15,25 ****
   *   printing objects files.
   */
  
! #ifndef SOLARIS
! #include <a.out.h>
! #else
  #include <sys/exechdr.h>
  #endif
  #include <ar.h>
  
  #if defined(AIX) && defined(_I386) && !defined(OMAGIC)
--- 15,29 ----
   *   printing objects files.
   */
  
! #ifdef SOLARIS
  #include <sys/exechdr.h>
+ #else
+ #ifdef hpux
+ #include <filehdr.h>
+ #else
+ #include <a.out.h>
  #endif
+ #endif
  #include <ar.h>
  
  #if defined(AIX) && defined(_I386) && !defined(OMAGIC)
***************
*** 28,33 ****
--- 32,45 ----
  #	define ZMAGIC	MAG_SHROT
  #	define A_MAGIC4 MAG_SHROTSEP
  /* We still need more? Or lib's? */
+ #endif
+ 
+ #if defined(hpux)
+ #	define OMAGIC	EXEC_MAGIC
+ #	define NMAGIC	SHARE_MAGIC
+ #	define ZMAGIC	DEMAND_MAGIC
+ #	define A_MAGIC4 DL_MAGIC
+ /* We still need more. */
  #endif
  
  #if defined(_IBMR2) && !defined(OMAGIC)

home help back first fref pref prev next nref lref last post