changeset 21859:bd52f7e0fcdc

[defined (__alpha__) && !defined (__NetBSD__) && !defined (__OpenBSD__)]: Include definition of HDRR structure that used to be in sym.h, instead of sym.h.
author Richard M. Stallman <rms@gnu.org>
date Thu, 30 Apr 1998 03:45:54 +0000
parents 86dfe4ad11ee
children 58d299618042
files src/unexelf.c
diffstat 1 files changed, 32 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexelf.c	Thu Apr 30 03:23:42 1998 +0000
+++ b/src/unexelf.c	Thu Apr 30 03:45:54 1998 +0000
@@ -430,7 +430,38 @@
 #endif /* __sony_news && _SYSTYPE_SYSV */
 
 #if defined (__alpha__) && !defined (__NetBSD__) && !defined (__OpenBSD__)
-#include <sym.h>	/* get COFF debugging symbol table declaration */
+/* Declare COFF debugging symbol table.  This used to be in
+   /usr/include/sym.h, but this file is no longer included in Red Hat
+   5.0 and presumably in any other glibc 2.x based distribution.  */
+typedef struct {
+	short magic;
+	short vstamp;
+	int ilineMax;
+	int idnMax;
+	int ipdMax;
+	int isymMax;
+	int ioptMax;
+	int iauxMax;
+	int issMax;
+	int issExtMax;
+	int ifdMax;
+	int crfd;
+	int iextMax;
+	long cbLine;
+	long cbLineOffset;
+	long cbDnOffset;
+	long cbPdOffset;
+	long cbSymOffset;
+	long cbOptOffset;
+	long cbAuxOffset;
+	long cbSsOffset;
+	long cbSsExtOffset;
+	long cbFdOffset;
+	long cbRfdOffset;
+	long cbExtOffset;
+} HDRR, *pHDRR; 
+#define cbHDRR sizeof(HDRR)
+#define hdrNil ((pHDRR)0)
 #endif
 
 #ifdef __NetBSD__