diff 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
line wrap: on
line diff
--- a/src/unexelf.c	Fri Sep 08 00:46:53 2000 +0000
+++ b/src/unexelf.c	Fri Sep 08 09:23:57 2000 +0000
@@ -406,6 +406,7 @@
 
 #ifndef emacs
 #define fatal(a, b, c) fprintf (stderr, a, b, c), exit (1)
+#include <string.h>
 #else
 #include <config.h>
 extern void fatal (char *, ...);
@@ -415,7 +416,6 @@
 #include <stdio.h>
 #include <sys/stat.h>
 #include <memory.h>
-#include <string.h>
 #include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -499,12 +499,12 @@
 #  define HDRR		struct ecoff_symhdr
 #  define pHDRR		HDRR *
 # endif /* __alpha__ */
-#endif /* __NetBSD__ */
 
-#ifdef __mips__					/* was in pkgsrc patches for 20.7 */
+#ifdef __mips__			/* was in pkgsrc patches for 20.7 */
 # define SHT_MIPS_DEBUG	DT_MIPS_FLAGS
 # define HDRR		struct Elf_Shdr
 #endif /* __mips__ */
+#endif /* __NetBSD__ */
 
 #ifdef __OpenBSD__
 # include <sys/exec_elf.h>