comparison src/unexelf.c @ 31487:9af879dacd99

(SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last change to __NetBSD__.
author Dave Love <fx@gnu.org>
date Fri, 08 Sep 2000 09:23:57 +0000
parents c0ff788ed359
children dedc24a9f752
comparison
equal deleted inserted replaced
31486:a3dc5f987e8f 31487:9af879dacd99
404 404
405 */ 405 */
406 406
407 #ifndef emacs 407 #ifndef emacs
408 #define fatal(a, b, c) fprintf (stderr, a, b, c), exit (1) 408 #define fatal(a, b, c) fprintf (stderr, a, b, c), exit (1)
409 #include <string.h>
409 #else 410 #else
410 #include <config.h> 411 #include <config.h>
411 extern void fatal (char *, ...); 412 extern void fatal (char *, ...);
412 #endif 413 #endif
413 414
414 #include <sys/types.h> 415 #include <sys/types.h>
415 #include <stdio.h> 416 #include <stdio.h>
416 #include <sys/stat.h> 417 #include <sys/stat.h>
417 #include <memory.h> 418 #include <memory.h>
418 #include <string.h>
419 #include <errno.h> 419 #include <errno.h>
420 #include <unistd.h> 420 #include <unistd.h>
421 #include <fcntl.h> 421 #include <fcntl.h>
422 #if !defined (__NetBSD__) && !defined (__OpenBSD__) 422 #if !defined (__NetBSD__) && !defined (__OpenBSD__)
423 #include <elf.h> 423 #include <elf.h>
497 # ifdef __alpha__ 497 # ifdef __alpha__
498 # include <sys/exec_ecoff.h> 498 # include <sys/exec_ecoff.h>
499 # define HDRR struct ecoff_symhdr 499 # define HDRR struct ecoff_symhdr
500 # define pHDRR HDRR * 500 # define pHDRR HDRR *
501 # endif /* __alpha__ */ 501 # endif /* __alpha__ */
502 #endif /* __NetBSD__ */ 502
503 503 #ifdef __mips__ /* was in pkgsrc patches for 20.7 */
504 #ifdef __mips__ /* was in pkgsrc patches for 20.7 */
505 # define SHT_MIPS_DEBUG DT_MIPS_FLAGS 504 # define SHT_MIPS_DEBUG DT_MIPS_FLAGS
506 # define HDRR struct Elf_Shdr 505 # define HDRR struct Elf_Shdr
507 #endif /* __mips__ */ 506 #endif /* __mips__ */
507 #endif /* __NetBSD__ */
508 508
509 #ifdef __OpenBSD__ 509 #ifdef __OpenBSD__
510 # include <sys/exec_elf.h> 510 # include <sys/exec_elf.h>
511 #endif 511 #endif
512 512