diff src/s/netbsd.h @ 452:3d3049ae1304 r21-2-41

Import from CVS: tag r21-2-41
author cvs
date Mon, 13 Aug 2007 11:40:21 +0200
parents abe6d1db359e
children 14227e8a3f1f
line wrap: on
line diff
--- a/src/s/netbsd.h	Mon Aug 13 11:39:21 2007 +0200
+++ b/src/s/netbsd.h	Mon Aug 13 11:40:21 2007 +0200
@@ -53,7 +53,15 @@
 
 #define HAVE_TEXT_START		/* No need to define `start_of_text'.  */
 #define ORDINARY_LINK
+
+/* As of this writing (Netbsd 1.5 was just released), Netbsd is
+   converting from a.out to elf - x86 and Sparc are using ELF.
+   But we're clever and let the compiler tell us which one to use.  */
+#ifdef __ELF__
+#define UNEXEC "unexelf.o"
+#else
 #define UNEXEC "unexfreebsd.o"  /* ironic, considering history of unexfreebsd */
+#endif
 
 #if 0
 /* Try to make this work for both 0.9 and >0.9.  */