mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
|
--- src/unexelf1.c.orig Sat Aug 10 06:56:52 1996
|
||
|
+++ src/unexelf1.c Sun Jan 17 00:28:21 1999
|
||
|
@@ -423,12 +423,50 @@
|
||
|
#include <elf.h>
|
||
|
#include <sys/mman.h>
|
||
|
|
||
|
-#ifdef __alpha__
|
||
|
+#if defined(__alpha__) && defined(__osf__)
|
||
|
# include <sym.h> /* get COFF debugging symbol table declaration */
|
||
|
+#else if defined(__alpha__)
|
||
|
+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
|
||
|
|
||
|
#if __GNU_LIBRARY__ - 0 >= 6
|
||
|
# include <link.h> /* get ElfW etc */
|
||
|
+#endif
|
||
|
+
|
||
|
+#ifdef __FreeBSD__
|
||
|
+# ifdef __STDC__
|
||
|
+# define ElfW(type) Elf_##type
|
||
|
+# else
|
||
|
+# define ElfW(type) Elf_/**/type
|
||
|
+# endif
|
||
|
#endif
|
||
|
|
||
|
#ifndef ElfW
|