X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fs%2Fnetbsd.h;h=682ff748d48b79d965ef1f2a8bce6762c6b8ca11;hb=930837f0e2867be99a167b32f57d57898c838571;hp=30b752511720f82ddd6b83865912a3a7c72692cf;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git- diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 30b7525..682ff74 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -17,7 +17,6 @@ #undef KERNEL_FILE #undef LDAV_SYMBOL -#define HAVE_GETLOADAVG #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) @@ -54,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. */