diff options
author | Yoichi NAKAYAMA <yoichi@FreeBSD.org> | 2002-03-01 04:16:14 +0000 |
---|---|---|
committer | Yoichi NAKAYAMA <yoichi@FreeBSD.org> | 2002-03-01 04:16:14 +0000 |
commit | ddcb5293b500b7d82448746c7b1dfcad91c007dd (patch) | |
tree | 32488ca5eaa1b778c56e77299dc5dc8f30c0a281 /textproc/coco/files/patch-src_unexelf1.c | |
parent | add gps 0.9.1 (diff) |
Add package includes coco & m2ps.
Those commands are included in mule-2.3 but not integrated in
emacs-2x distribution even after merging MULE feature.
(repo-copied from editors/mule-common)
PR: ports/33287
Submitted by: Teruaki Ata <PFA03027@nifty.ne.jp>
Notes
Notes:
svn path=/head/; revision=55366
Diffstat (limited to 'textproc/coco/files/patch-src_unexelf1.c')
-rw-r--r-- | textproc/coco/files/patch-src_unexelf1.c | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/textproc/coco/files/patch-src_unexelf1.c b/textproc/coco/files/patch-src_unexelf1.c new file mode 100644 index 000000000000..e1b17ffe59ff --- /dev/null +++ b/textproc/coco/files/patch-src_unexelf1.c @@ -0,0 +1,68 @@ +diff -rBbc src/unexelf1.c src/unexelf1.c +*** src/unexelf1.c Sat Aug 10 06:56:52 1996 +--- src/unexelf1.c Sat Dec 29 03:49:32 2001 +*************** +*** 423,434 **** + #include <elf.h> + #include <sys/mman.h> + +! #ifdef __alpha__ + # include <sym.h> /* get COFF debugging symbol table declaration */ + #endif + + #if __GNU_LIBRARY__ - 0 >= 6 + # include <link.h> /* get ElfW etc */ + #endif + + #ifndef ElfW +--- 423,472 ---- + #include <elf.h> + #include <sys/mman.h> + +! #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 |